Function at 0x410d50
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4138d2
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x419078]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x168], ecx
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x415e30
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x10], edx
mov ax, word [0x415e34]
mov word [ebp - 0x14], ax
mov cl, byte [0x415e36]
mov byte [ebp - 0x12], cl
mov dword [ebp - 0x1c], 0
lea edx, [ebp - 0x1c]
push edx
push 0x415e38
mov eax, dword [ebp - 0x10]
push eax
call fcn.004065f8
add esp, 0xc
cmp eax, 1
je 0x410ddb
jmp 0x410f9c
push 0x415e3c
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00404900
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x410dfa
jmp 0x410f9c
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x16c], ecx
cmp dword [ebp - 0x16c], 1
je 0x410e2d
cmp dword [ebp - 0x16c], 2
je 0x410ec3
jmp 0x410f5a
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.00404900
add esp, 8
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x410e4b
jmp 0x410f5a
mov cl, byte [0x415c8f]
mov byte [ebp - 0xa4], cl
push 0x7f
push 0
lea edx, [ebp - 0xa3]
push edx
call fcn.00404f60
add esp, 0xc
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp - 0xa4]
push edx
call fcn.00404a00
add esp, 0xc
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x148]
call fcn.00401cc0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x148]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00403ae0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x148]
call fcn.00401320
jmp 0x410f5a
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.00404900
add esp, 8
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xa8], 0
jne 0x410ee4
jmp 0x410f5a
mov cl, byte [0x415c92]
mov byte [ebp - 0x12c], cl
push 0x7f
push 0
lea edx, [ebp - 0x12b]
push edx
call fcn.00404f60
add esp, 0xc
mov eax, dword [ebp - 0xa8]
sub eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp - 0x12c]
push edx
call fcn.00404a00
add esp, 0xc
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x164]
call fcn.00401cc0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x164]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00403ae0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x164]
call fcn.00401320
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.00404900
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x410f75
jmp 0x410f9c
mov ecx, dword [ebp - 0x18]
add ecx, 2
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
cmp ecx, edx
jb 0x410f87
jmp 0x410f9c
mov eax, dword [ebp - 0x18]
add eax, 2
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], ecx
jne 0x410db5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.004049f0
mov esp, ebp
pop ebp
ret 0x10