Function at 0x40d690
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x45879e
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46f1b0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x60]
mov eax, dword [0x471864]
mov edx, dword [eax + 0xc]
mov ecx, 0x471864
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x50], 0
mov eax, dword [0x471864]
mov edx, dword [eax + 0xc]
mov ecx, 0x471864
call edx
add eax, 0x10
mov dword [esp + 0x28], eax
mov byte [esp + 0x50], 1
mov eax, dword [0x471864]
mov edx, dword [eax + 0xc]
mov ecx, 0x471864
call edx
add eax, 0x10
mov dword [esp + 0x44], eax
mov byte [esp + 0x50], 2
mov ecx, dword [esp + 0x5c]
call fcn.00402b00
mov ecx, ebp
call fcn.00402b00
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
test eax, eax
je 0x40d754
mov ecx, eax
lea esi, [ecx + 1]
mov edi, edi
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40d730
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00402b60
lea ebx, [esp + 0x18]
call fcn.0040e8e0
mov edi, eax
call fcn.0040e960
mov eax, dword [0x471864]
mov edx, dword [eax + 0xc]
mov ecx, 0x471864
call edx
add eax, 0x10
mov dword [esp + 0x24], eax
push str.bsaitest
mov byte [esp + 0x54], 3
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esp + 0x40], eax
test eax, eax
jne 0x40d78c
push 0x8007000e
call fcn.00401000
mov ebx, eax
lea edi, [esp + 0x24]
mov byte [esp + 0x50], 4
call fcn.0040e580
lea eax, [esp + 0x38]
push eax
mov ecx, edi
mov edx, 0x45f0e0
call fcn.0040e600
lea ecx, [esp + 0x64]
push 0x45f1d0
push ecx
mov ebx, 5
mov ecx, eax
mov byte [esp + 0x5c], bl
call fcn.0040a060
add esp, 0xc
push eax
mov ecx, edi
mov byte [esp + 0x54], 6
call fcn.00402d80
mov byte [esp + 0x50], bl
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d7fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 4
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d820
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x471864]
mov eax, dword [edx + 0xc]
mov ecx, 0x471864
call eax
add eax, 0x10
mov dword [esp + 0x38], eax
push 0xa
push 0x33ca
push str._P__8__
mov byte [esp + 0x5c], 7
call fcn.00433609
add esp, 0xc
push eax
push ebx
push 0x1cde
push 0x45f1e0
call fcn.00433609
add esp, 0xc
push eax
lea edi, [esp + 0x40]
call fcn.004056f0
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x2c]
add esp, 8
push ecx
push edx
lea eax, [esp + 0x20]
push eax
call fcn.0040b890
mov edx, dword [0x471864]
mov eax, dword [edx + 0xc]
mov ecx, 0x471864
mov dword [esp + 0x20], 0
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x50], 8
mov edx, dword [0x471864]
mov eax, dword [edx + 0xc]
mov ecx, 0x471864
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x23]
push ecx
lea edx, [esp + 0x28]
mov bl, 9
mov byte [esp + 0x60], bl
push edx
lea esi, [esp + 0x34]
mov byte [esp + 0x74], 0
mov byte [esp + 0x2b], 0x2f
call fcn.00433842
mov edi, dword [esp + 0x34]
add esp, 0x14
mov eax, edi
lea esi, [esp + 0x30]
lea ecx, [esp + 0x18]
call fcn.00409f80
push eax
mov ecx, ebp
mov byte [esp + 0x54], 0xa
call fcn.00402d80
mov byte [esp + 0x50], bl
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d939
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x5c]
push ebp
call fcn.00402d80
mov ecx, dword [esp + 0x58]
mov edx, dword [ecx]
mov edx, dword [edx + 0x44]
lea eax, [esp + 0x34]
push eax
call edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x60], 0xb
push ecx
lea esi, [esp + 0x34]
mov ebp, edi
mov byte [esp + 0x6c], 0x2f
call fcn.00433842
add esp, 0x14
test al, al
je 0x40dadf
lea esp, [esp]
mov edx, dword [esp + 0x1c]
cmp dword [edx - 0xc], 0
je 0x40dadf
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x20]
mov edx, 0x45f0e0
call fcn.0040e600
lea ecx, [esp + 0x34]
push 0x45f0e0
push ecx
mov ecx, eax
mov byte [esp + 0x5c], 0xc
call fcn.0040a060
add esp, 0xc
mov byte [esp + 0x50], 0xe
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d9ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x40da74
mov eax, dword [esp + 0x34]
cmp dword [eax - 0xc], 0
jl 0x40da74
push ecx
push eax
call fcn.00440017
add esp, 8
test eax, eax
je 0x40da74
sub eax, dword [esp + 0x34]
js 0x40da74
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x28]
push edx
lea esi, [esp + 0x34]
mov byte [esp + 0x6c], 0x2f
call fcn.00433842
mov bl, al
mov byte [esp + 0x64], 0xb
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
add esp, 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40da6a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x40d990
jmp 0x40dadf
sub edi, ebp
push edi
push ebp
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x24]
call fcn.0040a2b0
mov byte [esp + 0x50], 0xf
mov ecx, dword [esp + 0x5c]
push eax
call fcn.00402d80
mov byte [esp + 0x50], 0xe
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40daba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 0xb
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dadf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
push 0x65
call fcn.004010d0
add esp, 8
test eax, eax
je 0x40dafb
push 0x65
push eax
lea ecx, [esp + 0x30]
call fcn.00402c50
lea ebx, [esp + 0x28]
call fcn.0040e8e0
mov edi, eax
call fcn.0040e960
mov ecx, dword [esp + 0x28]
cmp dword [ecx - 0xc], 0
mov esi, dword [esp + 0x5c]
je 0x40db37
push 1
push 0x45f0dc
mov ecx, esi
call fcn.00402a40
mov eax, dword [esp + 0x28]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, esi
call fcn.00402a40
mov eax, dword [0x4729fc]
test eax, eax
jne 0x40db6e
push 0x9c
call fcn.004402d1
add esp, 4
mov dword [esp + 0x5c], eax
mov byte [esp + 0x50], 0x10
test eax, eax
je 0x40db62
push eax
call fcn.0042868c
jmp 0x40db64
xor eax, eax
mov byte [esp + 0x50], 0xb
mov dword [0x4729fc], eax
push esi
push eax
call fcn.00428f33
push 1
push 0x2aac
push 0x45e8a0
call fcn.00433609
add esp, 0xc
push eax
lea ecx, [esp + 0x64]
call fcn.00402830
push 4
push 0x876
push 0x45f1e8
mov byte [esp + 0x5c], 0x11
call fcn.00433609
add esp, 0xc
push eax
lea ecx, [esp + 0x60]
call fcn.00402830
mov bl, 0x12
mov byte [esp + 0x50], bl
mov edx, dword [0x4729fc]
test edx, edx
jne 0x40dbf5
push 0x9c
call fcn.004402d1
add esp, 4
mov dword [esp + 0x58], eax
mov byte [esp + 0x50], 0x13
test eax, eax
je 0x40dbe8
push eax
call fcn.0042868c
jmp 0x40dbea
xor eax, eax
mov byte [esp + 0x50], bl
mov dword [0x4729fc], eax
mov edx, eax
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x60]
call fcn.00428d4c
mov byte [esp + 0x50], 0x11
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dc28
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 0xb
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dc4d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0042997c
mov byte [esp + 0x50], 9
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dc77
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 8
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dc9c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 7
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dcc1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 4
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dce6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x40]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [esp + 0x50], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40dd16
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 1
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dd3b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dd60
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x50], 0xffffffff
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 0x40dd88
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 0xc