Function at 0x415510
Capabilities:
Accept command line arguments
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2cc
mov eax, dword [0x43a050]
xor eax, esp
mov dword [esp + 0x2c8], eax
push ebx
push esi
push edi
lea ecx, [esp + 0x5c]
call fcn.0040ba30
lea edi, [esp + 0x18]
call fcn.0040c560
push ecx
mov eax, esp
mov dword [esp + 0x18], esp
push eax
mov ecx, str._appdata__tweakcube3_
call fcn.004012d0
lea esi, [esp + 0x14]
call fcn.0040c840
mov edi, dword [esp + 0x10]
xor ebx, ebx
cmp edi, ebx
jne 0x41556e
push 0x80004005
call fcn.00401000
mov ecx, dword [esp + 0x18]
push edi
push ecx
call fcn.0041912a
add esp, 8
test eax, eax
je 0x4156cf
call fcn.0040e1c0
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [esp + 0x1c], 1
jle 0x4155c1
mov eax, dword [eax + 4]
push str._copyfile
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4155c1
lea eax, [edi - 0x10]
jmp 0x415886
push str.TWEAKCUBE3_WINGUARD_EVENT_NAME
push ebx
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
cmp esi, ebx
je 0x4155e6
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.IsWow64Process
push str.kernel32
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x415615
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [esp + 0x10], ebx
je 0x415671
call fcn.00401c70
cmp eax, 0x1b
jne 0x415671
push ecx
mov edx, esp
mov dword [esp + 0x18], esp
push edx
mov ecx, str._appdata__tweakcube3winguard_x64.exe
call fcn.004012d0
lea esi, [esp + 0x14]
call fcn.0040c840
mov esi, dword [esp + 0x10]
push ecx
add esi, 0xfffffff0
mov eax, esi
mov dword [esp + 0x18], esp
mov ebx, esp
call fcn.00401710
add eax, 0x10
mov dword [ebx], eax
call fcn.0040f820
add esp, 4
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jmp 0x4156bb
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push ecx
mov ecx, str._appdata__tweakcube3winguard.exe
call fcn.004012d0
lea esi, [esp + 0x14]
call fcn.0040c840
mov esi, dword [esp + 0x10]
push ecx
add esi, 0xfffffff0
mov eax, esi
mov dword [esp + 0x18], esp
mov ebx, esp
call fcn.00401710
add eax, 0x10
mov dword [ebx], eax
call fcn.0040f820
add esp, 4
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4156c7
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea eax, [edi - 0x10]
jmp 0x415886
call fcn.0040b970
mov edi, dword [0x43c9a8]
lea ecx, [esp + 0x20]
add edi, 0x10
push edi
mov dword [esp + 0x24], vtable.WTL::CMessageLoop.0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [0x43ca84]
lea edx, [esp + 0x1c]
mov dword [esp + 0x14], eax
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00416090
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push str.TWEAKCUBE3_WINGUARD_EVENT_NAME
push ebx
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventW]
cmp eax, ebx
je 0x415753
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x415845
push str.TWEAKCUBE3_WINGUARD_EVENT_NAME
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
lea ecx, [esp + 0x98]
push ecx
mov dword [0x43c9b0], eax
call fcn.00412500
lea edx, [esp + 0x74]
push edx
lea ecx, [esp + 0x9c]
call fcn.00412720
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x74], ebx
jne 0x415797
cmp dword [esp + 0x78], ebx
je 0x4157de
push 1
call fcn.004150f0
add esp, 4
test al, al
je 0x4157de
push ebx
push ebx
push ebx
push 0x415250
push ebx
push ebx
call fcn.0041bded
add esp, 0x18
push eax
call esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x415220
push ebx
push ebx
call fcn.0041bded
add esp, 0x18
push eax
call esi
lea edi, [esp + 0x20]
call fcn.0040b820
mov eax, dword [0x43c9b0]
cmp eax, ebx
je 0x4157ea
push eax
call esi
push ebx
call fcn.004150f0
mov eax, dword [esp + 0x98]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415816
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x90]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415839
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x98]
call fcn.00415080
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x41585a
push eax
call fcn.0041ae9d
add esp, 4
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x24]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
cmp eax, ebx
je 0x415877
push eax
call fcn.0041ae9d
add esp, 4
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41589f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4158bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x5c]
call fcn.0040bb20
mov eax, dword [esp + 0x6c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4158e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2d4]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00418cd4
mov esp, ebp
pop ebp
ret 0x10