Function at 0x407220
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58c075
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x608190]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1f4], ecx
cmp dword [0x609688], 0xffffffff
jne 0x4074bc
mov ecx, 0x614354
call fcn.00411780
push eax
lea eax, [ebp - 0x70]
push eax
mov ecx, 0x614354
call fcn.00411850
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0xd0]
push ecx
mov ecx, 0x614354
call fcn.004118e0
mov byte [ebp - 4], 1
push 0x5d9378
lea ecx, [ebp - 0xd0]
call fcn.00402330
mov ecx, 0x614354
call fcn.00411780
push eax
lea edx, [ebp - 0x1f0]
push edx
mov ecx, 0x614354
call fcn.004118e0
mov dword [ebp - 0x200], eax
mov eax, dword [ebp - 0x200]
mov dword [ebp - 0x20c], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0xd0]
call fcn.004024d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1f0]
call fcn.00402230
push 0x5d937c
lea ecx, [ebp - 0x70]
call fcn.00402950
push 0x5d9380
lea ecx, [ebp - 0x70]
call fcn.00402330
lea edx, [ebp - 0x70]
push edx
mov ecx, 0x61435c
call fcn.00404e70
test eax, eax
je 0x407436
lea ecx, [ebp - 0x130]
call fcn.004021a0
mov byte [ebp - 4], 3
sub esp, 0x60
mov ecx, esp
mov dword [ebp - 0x214], esp
lea eax, [ebp - 0x70]
push eax
call fcn.00402400
mov dword [ebp - 0x208], eax
mov ecx, dword [ebp - 0x208]
mov dword [ebp - 0x220], ecx
mov byte [ebp - 4], 4
lea edx, [ebp - 0x130]
push edx
sub esp, 0x60
mov ecx, esp
mov dword [ebp - 0x210], esp
push 0x5d9394
call fcn.00402270
mov dword [ebp - 0x1fc], eax
mov eax, dword [ebp - 0x1fc]
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 5
sub esp, 0x60
mov ecx, esp
mov dword [ebp - 0x224], esp
push str.mode
call fcn.00402270
mov dword [ebp - 0x204], eax
mov ecx, dword [ebp - 0x204]
mov dword [ebp - 0x22c], ecx
mov byte [ebp - 4], 6
sub esp, 0x60
mov ecx, esp
mov dword [ebp - 0x218], esp
push str.config
call fcn.00402270
mov dword [ebp - 0x228], eax
mov byte [ebp - 4], 3
mov ecx, 0x614354
call fcn.00412090
lea ecx, [ebp - 0x130]
call fcn.00402790
mov ecx, eax
call fcn.00412ab0
movzx edx, al
test edx, edx
jne 0x40741b
lea ecx, [ebp - 0x130]
call fcn.00402620
push eax
call fcn.0055afd4
add esp, 4
mov dword [0x609688], eax
jmp 0x407425
mov dword [0x609688], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x130]
call fcn.00402230
jmp 0x407440
mov dword [0x609688], 1
mov eax, dword [0x609688]
push eax
lea ecx, [ebp - 0xd0]
call fcn.00402790
mov ecx, eax
call fcn.0042e3d0
push eax
push 0x5d93f0
lea ecx, [ebp - 0x190]
push ecx
push 0x614354
call fcn.00411a20
add esp, 0x14
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x190]
call fcn.00402790
mov ecx, eax
call fcn.0042e3d0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x190]
call fcn.00402230
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xd0]
call fcn.00402230
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00402230
cmp dword [0x609688], 0
jne 0x4074cc
xor eax, eax
jmp 0x407582
mov ecx, dword [ebp - 0x1f4]
add ecx, 0x28
call fcn.00402790
mov ecx, eax
call fcn.00412ab0
movzx edx, al
test edx, edx
je 0x4074ef
xor eax, eax
jmp 0x407582
mov eax, dword [ebp - 0x1f4]
cmp dword [eax + 0x434], 0
jne 0x407505
mov eax, 3
jmp 0x407582
mov dword [ebp - 0x1f8], 0
mov ecx, dword [ebp - 0x1f4]
movzx edx, byte [ecx + 0x3e8]
test edx, edx
je 0x40752f
mov eax, dword [ebp - 0x1f8]
or eax, 1
mov dword [ebp - 0x1f8], eax
mov ecx, dword [ebp - 0x1f4]
movzx edx, byte [ecx + 0x418]
test edx, edx
je 0x407554
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1f4]
call fcn.0040a920
cmp eax, 1
je 0x40755c
mov eax, dword [ebp - 0x1f8]
jmp 0x407582
mov ecx, dword [ebp - 0x1f4]
movzx edx, byte [ecx + 0x3e9]
test edx, edx
je 0x40757c
mov eax, dword [ebp - 0x1f8]
or eax, 2
mov dword [ebp - 0x1f8], eax
mov eax, dword [ebp - 0x1f8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00558807
mov esp, ebp
pop ebp
ret 4