Function at 0x403a90
Capabilities:
Create process on windows
Create thread
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43f0c4
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x451530]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push esi
push edi
mov eax, dword [0x451530]
xor eax, esp
push eax
lea eax, [esp + 0x260]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.00415845
push 0x4460e8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebx + 0x78]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
mov eax, dword [ebx + 0x20]
push 1
push 0x80
push eax
call edi
mov eax, dword [ebx + 0x78]
mov ecx, dword [ebx + 0x20]
push eax
xor esi, esi
push esi
push 0x80
push ecx
call edi
push 0x103
lea edx, [esp + 0x49]
push esi
push edx
mov dword [ebx + 0x1bc], esi
mov dword [ebx + 0x21c], esi
mov byte [esp + 0x50], 0
call fcn.0042afc0
add esp, 0xc
call fcn.0040ae6b
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x403b49
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x268], esi
call fcn.0040ae6b
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x403b7a
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x268], 1
call fcn.0041674a
mov eax, dword [eax + 8]
push 0x104
lea ecx, [esp + 0x48]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea eax, [esp + 0x44]
lea esi, [ebx + 0x2cc]
lea edi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403bd0
sub eax, edi
push eax
lea ecx, [esp + 0x48]
push ecx
mov ecx, esi
call fcn.00402850
call fcn.0041674a
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x48]
push edx
lea ecx, [esp + 0x24]
call fcn.00401ed0
mov byte [esp + 0x268], 2
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 0xc]
test eax, eax
jle 0x403e5a
push 0x20
push ecx
call fcn.004292ce
add esp, 8
test eax, eax
jne 0x403c26
or edi, 0xffffffff
jmp 0x403c2c
sub eax, dword [esp + 0x20]
mov edi, eax
push edi
push 0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x2c]
call fcn.00405390
push eax
mov ecx, 0x45678c
mov byte [esp + 0x26c], 3
call fcn.00402420
mov byte [esp + 0x268], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403c78
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x45678c]
mov eax, dword [ecx - 0xc]
add eax, 0xfffffffc
push eax
push 0
lea edx, [esp + 0x1c]
push edx
mov ecx, 0x45678c
call fcn.00405390
push eax
mov ecx, 0x45678c
mov byte [esp + 0x26c], 4
call fcn.00402420
mov byte [esp + 0x268], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403cd1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 4
push str..xml
mov ecx, 0x45678c
call fcn.00405790
inc edi
push edi
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x28]
call fcn.00405360
push eax
mov ecx, 0x456794
mov byte [esp + 0x26c], 5
call fcn.00402420
mov byte [esp + 0x268], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403d2d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x456794]
cmp dword [ecx - 0xc], 0
jle 0x403e30
push 0x20
push ecx
call fcn.004292ce
mov ecx, dword [0x456794]
add esp, 8
test eax, eax
je 0x403e30
sub eax, ecx
mov edi, eax
cmp edi, 0xffffffff
je 0x403e30
lea ecx, [edi + 1]
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, 0x456794
call fcn.00405360
push eax
mov ecx, 0x456790
mov byte [esp + 0x26c], 6
call fcn.00402420
mov byte [esp + 0x268], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403db1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
push 0
lea ecx, [esp + 0x1c]
push ecx
mov ecx, 0x456794
call fcn.00405390
push eax
mov ecx, 0x456794
mov byte [esp + 0x26c], 7
call fcn.00402420
mov byte [esp + 0x268], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403dfe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [0x456790]
cmp dword [eax - 4], 1
jle 0x403e1c
mov ecx, dword [eax - 0xc]
push ecx
mov ecx, 0x456790
call fcn.00402d70
mov eax, dword [0x456790]
push eax
call fcn.00428f72
mov ecx, dword [0x456794]
add esp, 4
mov dword [0x4539fc], eax
cmp dword [ecx - 4], 1
jle 0x403e4a
mov edx, dword [ecx - 0xc]
push edx
mov ecx, 0x456794
call fcn.00402d70
mov ecx, dword [0x456794]
push ecx
call fcn.00428f72
add esp, 4
mov dword [0x4539f8], eax
jmp 0x403e69
push 0x456798
mov ecx, 0x45678c
call fcn.00402420
lea eax, [esp + 0x1c]
push eax
call fcn.004019d0
call fcn.0041674a
mov eax, dword [eax + 4]
push 0
push str.TempDir
push str.Setup
lea ecx, [esp + 0x20]
push ecx
mov ecx, eax
call fcn.0040c8fa
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x26c], 8
call fcn.00402420
mov byte [esp + 0x268], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403ecd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 7
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x24]
call fcn.00402010
mov eax, dword [eax]
push str.http:__
push eax
call fcn.004294a9
add esp, 8
test eax, eax
mov eax, dword [esp + 0x14]
setne byte [esp + 0x1b]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403f14
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x1b], 0
je 0x403f6c
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push str.http:__
push edx
call fcn.00405500
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x26c], 9
call fcn.00402420
mov byte [esp + 0x268], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403f6c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 1
push 0x44611c
lea ecx, [esp + 0x24]
call fcn.00405790
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x18]
push esi
push edx
lea edi, [ebx + 0x74]
call fcn.00405440
add esp, 0xc
mov byte [esp + 0x268], 0xa
mov eax, dword [eax]
mov ecx, dword [esi]
push eax
lea edx, [ebx + 0x288]
push edi
mov dword [esp + 0x30], edx
push edx
mov edx, dword [esp + 0x28]
call fcn.00407340
mov byte [esp + 0x268], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403fdc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebx + 0x2e8]
lea ecx, [esp + 0x2c]
push ecx
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push 0x116
push eax
push ecx
push 0
push 0
push 0
mov ecx, ebx
call fcn.0040eafc
push 4
push 0x16
push 0x237
push 0xfe
push 0x23
lea ecx, [ebx + 0x80]
push 0
call fcn.0040eafc
push 4
push 0x16
push 0x237
push 0x11a
push 0x23
lea edi, [ebx + 0xf0]
push 0
mov ecx, edi
call fcn.0040eafc
push 5
push 0
push 0
push 0x136
push 0x32
lea ecx, [ebx + 0x160]
push 0
call fcn.0040eafc
push 5
push 0
push 0
push 0x136
push 0x136
lea ecx, [ebx + 0x1c0]
push 0
call fcn.0040eafc
mov eax, 0xfdd104
lea ecx, [ebx + 0x220]
push 0
mov dword [ebx + 0x1bc], eax
mov dword [ebx + 0x21c], eax
call fcn.0040e856
push 5
mov ecx, ebx
call fcn.0040e856
mov edx, dword [ebx + 0x20]
push edx
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov esi, ebx
call fcn.004050d0
mov eax, dword [ebx + 0x20]
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [ebx + 0x20]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x45678c
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00405440
add esp, 0xc
mov byte [esp + 0x268], 0xb
push ebx
mov ecx, eax
call fcn.00404970
test eax, eax
mov byte [esp + 0x268], 2
mov eax, dword [esp + 0x14]
sete byte [esp + 0x1b]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404125
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x1b], 0
je 0x4041d7
push 0x103
lea ecx, [esp + 0x151]
push 0
push ecx
mov byte [esp + 0x158], 0
call fcn.0042afc0
add esp, 0xc
call fcn.0041674a
mov eax, dword [eax + 8]
push 0x104
lea edx, [esp + 0x150]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x14c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push 0x446120
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea edi, [esp + 0x14c]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404190
mov ecx, 5
mov esi, str.GameLobby.exe_UPDATED
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0xa
lea ecx, [esp + 0x150]
push ecx
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_WinExec]
mov edx, dword [ebx + 0x20]
push 0
push 0
push 0x10
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x44614c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x404287
mov esi, ebx
call fcn.004050d0
mov ecx, dword [ebx + 0x20]
xor esi, esi
push esi
push esi
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
push esi
lea ecx, [ebx + 0x220]
call fcn.0040e856
push 5
lea ecx, [ebx + 0x160]
call fcn.0040e856
push 5
lea ecx, [ebx + 0x1c0]
call fcn.0040e856
push 5
lea ecx, [ebx + 0x80]
call fcn.0040e856
push 5
mov ecx, edi
call fcn.0040e856
mov eax, dword [ebx + 0x2d4]
shr eax, 0xa
push 5
mov ecx, ebx
mov dword [edi + 0x64], esi
mov dword [edi + 0x68], eax
call fcn.0040e856
mov edx, dword [ebx + 0x20]
push edx
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov eax, dword [ebx + 0x20]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x446160
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edi, dword [esp + 0x28]
lea ecx, [esp + 0x28]
push ecx
push esi
push edi
push 0x407820
push esi
push esi
mov dword [edi + 8], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [edi + 0x28]
push edx
mov dword [edi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov byte [esp + 0x268], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4042af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x268], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4042d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x268], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404302
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.004286dd
mov esp, ebp
pop ebp
ret