Function at 0x4037a0
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412360
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x450028]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x270], ecx
call dword [sym.imp.bdsafe.dll_Internal_BD_InitLog]
push 0x415374
push 0x415a60
mov ecx, 0x25
call fcn.00406a00
add esp, 8
lea edx, [ebp - 0x274]
push edx
mov ecx, 0x414572
call fcn.00404b60
push eax
lea eax, [ebp - 0x240]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.00401a70
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x274]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40384b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x248]
push ecx
mov ecx, eax
call fcn.00404ac0
lea edx, [ebp - 0x248]
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 3
call fcn.00406b20
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x248]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40389a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x25c]
push ecx
mov ecx, 0x415ba8
call fcn.00404ac0
lea edx, [ebp - 0x25c]
push edx
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x240]
push ecx
mov byte [ebp - 4], 4
call fcn.004070c0
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x25c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4038ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x240]
call fcn.00407230
test eax, eax
je 0x40399b
lea ecx, [ebp - 0x248]
push ecx
mov ecx, 0x415b14
call fcn.00404ac0
mov bl, 7
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], bl
call fcn.00408910
mov esi, eax
lea edx, [ebp - 0x248]
push edx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
call fcn.00407550
mov edi, eax
mov eax, esi
call fcn.00405430
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x250]
add eax, 0xfffffff0
mov dword [ebp - 0x34], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40396d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x248]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403993
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x24c]
xor edi, edi
lea esi, [ebp - 0x24c]
lea eax, [ebp - 0x240]
call fcn.00401d60
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x244]
mov ecx, 0x415a60
jmp 0x4039c0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4039e6
cmp dx, di
je 0x4039e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4039e6
add eax, 4
add ecx, 4
cmp dx, di
jne 0x4039c0
xor eax, eax
jmp 0x4039eb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
setne al
test al, al
je 0x403a1b
lea ecx, [ebp - 0x244]
push ecx
mov ecx, str.3_Rw
call fcn.00404f90
add esp, 4
test al, al
je 0x403a1b
call dword [sym.imp.bdlog.dll_GetLogController]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x2c]
call eax
mov ecx, dword [ebp - 0x244]
cmp dword [ecx - 0xc], edi
je 0x403f56
lea edx, [ebp - 0x244]
push edx
mov ecx, str.3_Rw
call fcn.00404e80
add esp, 4
test al, al
jne 0x403f56
mov eax, dword [ebp - 0x244]
mov esi, dword [sym.imp.MSVCR80.dll__wcsicmp]
push 0x414518
push eax
call esi
add esp, 8
test eax, eax
je 0x403ec5
mov ecx, dword [ebp - 0x244]
push 0x415ba0
push ecx
call esi
add esp, 8
test eax, eax
je 0x403ec5
mov edx, dword [ebp - 0x244]
push 0x415b38
push edx
call esi
add esp, 8
test eax, eax
je 0x403ec5
lea eax, [ebp - 0x244]
push eax
mov ecx, 0x415b88
call fcn.00404c30
test eax, eax
jne 0x403b22
push 0x415560
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, edi
je 0x403c5e
lea edx, [ebp - 0x248]
mov ecx, 0x415584
mov dword [ebp - 0x248], edi
call fcn.00406540
mov eax, dword [ebp - 0x248]
cmp eax, edi
je 0x403c5e
mov ecx, dword [ebp - 0x254]
push ecx
push ebx
call eax
mov esi, eax
add esp, 8
lea eax, [ebp - 0x24c]
call fcn.004051b0
lea eax, [ebp - 0x244]
call fcn.004051b0
lea edx, [ebp - 0x240]
push edx
mov dword [ebp - 4], 0xffffffff
call fcn.00404180
mov eax, esi
jmp 0x404158
lea eax, [ebp - 0x244]
push eax
mov ecx, 0x415b48
call fcn.00404c30
test eax, eax
jne 0x403bcc
mov esi, 0x414518
call fcn.00401280
push 0x415598
call fcn.00401170
mov esi, eax
call fcn.00401450
push 0x4155b0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, edi
je 0x403c5e
lea edx, [ebp - 0x248]
mov ecx, 0x4155e8
mov dword [ebp - 0x248], edi
call fcn.00406540
mov eax, dword [ebp - 0x248]
cmp eax, edi
je 0x403c5e
mov ecx, dword [ebp - 0x254]
push ecx
push ebx
call eax
mov esi, eax
add esp, 8
lea eax, [ebp - 0x24c]
call fcn.004051b0
lea eax, [ebp - 0x244]
call fcn.004051b0
lea edx, [ebp - 0x240]
push edx
mov dword [ebp - 4], 0xffffffff
call fcn.00404180
mov eax, esi
jmp 0x404158
lea eax, [ebp - 0x244]
push eax
mov ecx, str.__rr
call fcn.00404c30
test eax, eax
jne 0x403c7d
push 0x415560
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, edi
jne 0x403c0f
lea eax, [ebp - 0x24c]
call fcn.004051b0
lea eax, [ebp - 0x244]
call fcn.004051b0
jmp 0x404142
lea edx, [ebp - 0x248]
mov ecx, 0x41561c
mov dword [ebp - 0x248], edi
call fcn.00406540
mov eax, dword [ebp - 0x248]
cmp eax, edi
jne 0x403c51
lea eax, [ebp - 0x24c]
call fcn.004051b0
lea eax, [ebp - 0x244]
call fcn.004051b0
lea edx, [ebp - 0x240]
push edx
jmp 0x404149
mov ecx, dword [ebp - 0x254]
push ecx
push ebx
call eax
add esp, 8
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x24c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x404110
lea edx, [ebp - 0x244]
push edx
mov ecx, 0x414504
call fcn.00404c30
test eax, eax
jne 0x403c5e
mov esi, 0x414504
call fcn.00401280
push 0x415630
call fcn.00401170
mov esi, eax
call fcn.00401450
lea eax, [ebp - 0x240]
push eax
call fcn.00401b50
mov eax, dword [eax]
push eax
push 0x415654
push 0x415674
mov ecx, 0x25
call fcn.00406a00
add esp, 0xc
lea ecx, [ebp - 0x258]
push ecx
push edi
mov dword [ebp - 0x258], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsProcessInJob]
cmp eax, edi
jne 0x403d04
push 0x12b
push 0x415690
call fcn.004069b0
add esp, 8
cmp dword [ebp - 0x258], edi
je 0x403dbd
push 0x44
lea edx, [ebp - 0x2c0]
push edi
push edx
call fcn.00411068
xor eax, eax
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x260], eax
add esp, 0xc
lea esi, [ebp - 0x250]
lea eax, [ebp - 0x240]
mov dword [ebp - 0x2c0], 0x44
call fcn.00401d60
mov esi, dword [eax]
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x2c0]
push ecx
push edi
push edi
push 0x1000000
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
lea eax, [ebp - 0x250]
call fcn.004051b0
cmp esi, edi
jne 0x403e4f
push 0x133
push 0x415690
call fcn.004069b0
add esp, 8
push 0x4156e4
push 0x415a60
mov ecx, 0x25
call fcn.00406a00
add esp, 8
push 0x415708
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, edi
je 0x403c5e
lea eax, [ebp - 0x250]
push eax
mov ecx, 0x415b00
call fcn.00404ac0
lea ecx, [ebp - 0x250]
push ecx
lea edx, [ebp - 0x248]
push edx
lea eax, [ebp - 0x240]
push eax
mov byte [ebp - 4], 0xa
call fcn.004070c0
lea eax, [ebp - 0x250]
mov byte [ebp - 4], 0xc
call fcn.004051b0
lea ecx, [ebp - 0x254]
mov eax, esi
mov dword [ebp - 0x254], edi
call fcn.004065b0
mov eax, dword [ebp - 0x254]
cmp eax, edi
je 0x403eb5
mov ecx, dword [ebp - 0x248]
push ecx
call eax
mov esi, eax
add esp, 4
lea eax, [ebp - 0x248]
call fcn.004051b0
jmp 0x403f26
mov edx, dword [ebp - 0x264]
push edx
push 0x4156a8
push 0x415a60
mov ecx, 0x25
call fcn.00406a00
mov eax, dword [ebp - 0x26c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0xc
push eax
call esi
mov ecx, dword [ebp - 0x268]
push ecx
call esi
lea eax, [ebp - 0x24c]
call fcn.004051b0
lea eax, [ebp - 0x244]
call fcn.004051b0
lea edx, [ebp - 0x240]
push edx
mov dword [ebp - 4], 0xffffffff
call fcn.00404180
xor eax, eax
jmp 0x404158
lea eax, [ebp - 0x248]
call fcn.004051b0
jmp 0x403c5e
mov esi, 0x414518
call fcn.00401280
push 0x415508
call fcn.00401170
mov esi, eax
call fcn.00401450
push 0x415528
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, edi
je 0x403c5e
lea edx, [ebp - 0x250]
mov ecx, 0x41554c
mov dword [ebp - 0x250], edi
call fcn.00406540
mov eax, dword [ebp - 0x250]
cmp eax, edi
je 0x403c5e
mov ecx, dword [ebp - 0x254]
push ecx
push ebx
call eax
add esp, 8
mov esi, eax
lea eax, [ebp - 0x24c]
call fcn.004051b0
lea eax, [ebp - 0x244]
call fcn.004051b0
lea edx, [ebp - 0x240]
push edx
mov dword [ebp - 4], 0xffffffff
call fcn.00404180
mov eax, esi
jmp 0x404158
push 0x41538c
push 0x415a60
mov ecx, 0x25
call fcn.00406a00
add esp, 8
xor esi, esi
call fcn.00401280
push 0x41539c
call fcn.00401170
mov esi, eax
call fcn.00401450
push 0x4153b8
push 0x415a60
mov ecx, 0x25
call fcn.00406a00
add esp, 8
push 0x415030
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, edi
jne 0x403fdc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4153dc
push 0x415a60
mov ecx, 0x40
call fcn.00406a00
add esp, 0xc
push 0x10
push 0x415410
push 0x41541c
jmp 0x4040ef
push 0x415450
push 0x415a60
mov ecx, 0x25
call fcn.00406a00
add esp, 8
lea ecx, [ebp - 0x250]
mov eax, esi
mov dword [ebp - 0x250], edi
call fcn.004064d0
mov esi, dword [ebp - 0x250]
cmp esi, edi
je 0x4040c5
cmp eax, 0xffffffff
je 0x4040c5
push 0x4154e8
push 0x415a60
mov ecx, 0x25
call fcn.00406a00
add esp, 8
lea edx, [ebp - 0x240]
push edx
call fcn.00401b50
fld qword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x270]
mov eax, dword [eax]
push ecx
push edx
sub esp, 8
fstp qword [esp]
push eax
push ebx
call esi
mov esi, eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x24c]
add eax, 0xfffffff0
add esp, 0x18
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404085
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x244]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4040ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x240]
push ecx
mov dword [ebp - 4], 0xffffffff
call fcn.00404180
mov eax, esi
jmp 0x404158
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x415488
push 0x415a60
mov ecx, 0x40
call fcn.00406a00
add esp, 0xc
push 0x10
push 0x415410
push 0x4154bc
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x24c]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40411c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x244]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404142
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x240]
push ecx
mov dword [ebp - 4], 0xffffffff
call fcn.00404180
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00410b3e
mov esp, ebp
pop ebp
ret