Function at 0x40d800
Capabilities:
Print debug messages

Disassembly:
sub esp, 0xd0
push ebx
mov ebx, dword [esp + 0xd8]
push ebp
push esi
push edi
mov edi, ecx
mov esi, ebx
mov dword [esp + 0x10], 0
lea ecx, [ecx]
mov eax, dword [esi + 4]
mov ecx, dword [edi + 0x17c]
mov dword [esp + 0x14], eax
call fcn.00408df0
mov eax, dword [esi + 0x40]
test dword [0x46f3b8], eax
jne 0x40d93b
test dword [0x46f3b0], eax
je 0x40d93b
mov bl, 1
nop
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x40d87b
lea ecx, [esp + 0x18]
push 0x470c84
push ecx
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 8
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
call dword [sym.imp.kernel32.dll_DebugBreak]
push esi
call dword [esi + 0x14]
mov ecx, dword [esi + 0x40]
mov ebp, eax
mov eax, dword [0x46f3b0]
add esp, 4
test ecx, eax
jne 0x40d894
xor bl, bl
jmp 0x40d911
test dword [0x46f3b8], ecx
je 0x40d8f0
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
mov dword [ecx + 8], edx
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x20]
lea eax, [esi + 0x1c]
mov dword [ecx + 4], edx
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [eax + 8], ecx
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
push esi
lea ecx, [edi + 0xf4]
mov dword [esi + 4], esi
mov dword [esi + 8], esi
call section.peC
mov ecx, dword [edi + 0x17c]
mov edx, dword [ecx]
xor eax, eax
mov al, byte [esi + 0x2f]
push eax
call dword [edx + 0x24]
xor bl, bl
jmp 0x40d911
mov eax, dword [0x46f3c0]
test eax, ecx
je 0x40d911
not eax
and eax, ecx
mov dword [esi + 0x40], eax
mov ecx, dword [edi + 0x17c]
mov edx, dword [ecx]
xor eax, eax
mov al, byte [esi + 0x2f]
push eax
call dword [edx + 0x24]
cmp ebp, dword [0x46f3a4]
je 0x40d934
cmp ebp, dword [0x46f3ac]
mov ecx, esi
jne 0x40d9d4
call fcn.00401680
test bl, bl
jne 0x40d850
mov ebx, dword [esp + 0xe4]
mov ecx, dword [0x46f3b0]
test dword [esi + 0x40], ecx
jne 0x40d99a
cmp esi, ebx
je 0x40d9a4
mov ecx, dword [edi + 0x17c]
mov edx, dword [ecx]
xor eax, eax
mov al, byte [esi + 0x2f]
push eax
call dword [edx + 0x24]
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
mov dword [ecx + 8], edx
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x20]
lea eax, [esi + 0x1c]
mov dword [ecx + 4], edx
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [eax + 8], ecx
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
push esi
lea ecx, [edi + 0x84]
mov dword [esi + 4], esi
mov dword [esi + 8], esi
call section.peC
cmp esi, ebx
je 0x40d9a4
mov esi, dword [esp + 0x14]
jmp 0x40d9a7
mov esi, dword [esi + 4]
inc dword [esp + 0x10]
mov ecx, dword [edi + 0x17c]
call fcn.00408e10
cmp esi, ebx
jne 0x40d820
mov eax, dword [esp + 0x10]
mov dword [edi + 4], eax
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xd0
ret 4
cmp ebp, dword [0x46f3a8]
jne 0x40d9f0
call fcn.00401680
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xd0
ret 4
call fcn.00401680
mov ecx, dword [0x4817b4]
mov edx, dword [0x493b80]
push 0x470cb8
push ecx
push 0
push edx
call fcn.0040edc0
add esp, 0x10
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xd0
ret 4