Function at 0x40cd30
Capabilities:
Accept command line arguments
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43bc90
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push esi
mov eax, dword [0x44aba4]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.00416d3e
test eax, eax
jne 0x40cd98
push 0x442d6c
call fcn.0042318c
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x440d84
lea ecx, [esp + 0x14]
call fcn.0040de10
cmp dword [ebp + 8], 2
mov dword [esp + 0x80], ebx
je 0x40ce9a
push 0xd
push 0x442d84
lea ecx, [esp + 0x18]
call fcn.0040dd00
lea esi, [esp + 0x58]
call fcn.00415850
mov esi, 0x10
mov byte [esp + 0x80], 1
cmp dword [eax + 0x18], esi
jb 0x40cde7
mov eax, dword [eax + 4]
jmp 0x40cdea
add eax, 4
push eax
lea ecx, [esp + 0x1c]
call fcn.0040de10
mov byte [esp + 0x80], 3
cmp dword [esp + 0x70], esi
jb 0x40ce0f
mov eax, dword [esp + 0x5c]
push eax
call fcn.00415b75
add esp, 4
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
call fcn.00411b90
mov byte [esp + 0x88], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ce58
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ce83
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 2
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00410af0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
push edx
lea ecx, [esp + 0x18]
call fcn.0040de10
mov byte [esp + 0x80], 4
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x14]
push 1
push ecx
call fcn.0040e0b0
add esp, 8
test al, al
jne 0x40cf62
push 0x442d94
lea ecx, [esp + 0x14]
call fcn.0040dc80
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00411b90
mov byte [esp + 0x88], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cf20
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cf4b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 3
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x14]
push ebx
push ecx
call fcn.0040e0b0
add esp, 8
test al, al
lea ecx, [esp + 0x10]
jne 0x40d001
push 0x442dc0
call fcn.0040dc80
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00411b90
mov byte [esp + 0x88], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cfbf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cfea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 4
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
push 1
lea ecx, [esp + 0x1c]
call fcn.0040e270
add esp, 8
test al, al
jne 0x40d04f
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00411b90
add esp, 8
lea ecx, [esp + 0x14]
call fcn.0040ddf0
lea ecx, [esp + 0x10]
call fcn.0040ddf0
mov eax, 5
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0040d9b0
mov dword [esp + 0x20], eax
mov byte [eax + 0x15], 1
mov eax, dword [esp + 0x20]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x20]
mov dword [eax], eax
mov eax, dword [esp + 0x20]
mov dword [eax + 8], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0x54]
lea ecx, [esp + 0x28]
mov byte [esp + 0x8c], 8
call fcn.0040e5c0
add esp, 0xc
test al, al
jne 0x40d138
push 0x442de8
lea ecx, [esp + 0x14]
call fcn.0040dc80
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00411b90
add esp, 8
lea esi, [esp + 0x28]
call fcn.0040d3b0
lea esi, [esp + 0x38]
call fcn.0040d3b0
lea esi, [esp + 0x48]
call fcn.0040d370
lea eax, [esp + 0x1c]
mov byte [esp + 0x80], 4
call fcn.0040d330
lea ecx, [esp + 0x14]
call fcn.0040ddf0
lea ecx, [esp + 0x10]
call fcn.0040ddf0
mov eax, 6
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.00410210
add esp, 0xc
test al, al
jne 0x40d1ba
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00411b90
add esp, 8
lea esi, [esp + 0x28]
call fcn.0040d3b0
lea esi, [esp + 0x38]
call fcn.0040d3b0
lea esi, [esp + 0x48]
call fcn.0040d370
lea eax, [esp + 0x1c]
mov byte [esp + 0x80], 4
call fcn.0040d330
lea ecx, [esp + 0x14]
call fcn.0040ddf0
lea ecx, [esp + 0x10]
call fcn.0040ddf0
mov eax, 7
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x4c]
call fcn.00411a60
add esp, 4
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x1c]
call fcn.0040e270
add esp, 8
test al, al
jne 0x40d248
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00411b90
add esp, 8
lea esi, [esp + 0x28]
call fcn.0040d3b0
lea esi, [esp + 0x38]
call fcn.0040d3b0
lea esi, [esp + 0x48]
call fcn.0040d370
lea eax, [esp + 0x1c]
mov byte [esp + 0x80], 4
call fcn.0040d330
lea ecx, [esp + 0x14]
call fcn.0040ddf0
lea ecx, [esp + 0x10]
call fcn.0040ddf0
mov eax, 8
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x13]
push ecx
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x1b], bl
call fcn.00411f50
add esp, 0xc
test al, al
jne 0x40d2ce
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00411b90
add esp, 8
lea esi, [esp + 0x28]
call fcn.0040d3b0
lea esi, [esp + 0x38]
call fcn.0040d3b0
lea esi, [esp + 0x48]
call fcn.0040d370
lea eax, [esp + 0x1c]
mov byte [esp + 0x80], 4
call fcn.0040d330
lea ecx, [esp + 0x14]
call fcn.0040ddf0
lea ecx, [esp + 0x10]
call fcn.0040ddf0
mov eax, 9
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea esi, [esp + 0x28]
call fcn.0040d3b0
lea esi, [esp + 0x38]
call fcn.0040d3b0
lea esi, [esp + 0x48]
call fcn.0040d370
lea eax, [esp + 0x1c]
mov byte [esp + 0x80], 4
call fcn.0040d330
lea ecx, [esp + 0x14]
call fcn.0040ddf0
lea ecx, [esp + 0x10]
call fcn.0040ddf0
cmp byte [esp + 0xf], 1
jne 0x40cd84
mov eax, 0x459
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret