Function at 0x51b5e0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58e923
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x5f8310]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x114], ecx
mov ecx, 0x5f8890
call dword [sym.imp.mfc90.dll_Ordinal_3178]
cmp eax, 1
jge 0x51b623
jmp 0x51c059
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xbc]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb8]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xc4]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x94]
call sub.mfc90.dll_Ordinal_404
mov byte [ebp - 4], 4
push 0
push 0
push 0x5c6e10
push 0x5c6e18
push 0x5f88a8
lea eax, [ebp - 0xd0]
push eax
call fcn.00402d80
add esp, 0xc
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x118]
mov dword [ebp - 0x11c], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x11c]
push edx
lea eax, [ebp - 0xd4]
push eax
call fcn.00402d80
add esp, 0xc
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0x120]
mov dword [ebp - 0x124], ecx
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x124]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
lea ecx, [ebp - 0x94]
call sub.mfc90.dll_Ordinal_5520
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0xc9], al
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xd4]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xd0]
call dword [sym.imp.mfc90.dll_Ordinal_601]
movzx edx, byte [ebp - 0xc9]
test edx, edx
je 0x51b78b
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x94]
call sub.mfc90.dll_Ordinal_663
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xc4]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb8]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xbc]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp 0x51c059
lea ecx, [ebp - 0x94]
call sub.mfc90.dll_Ordinal_1555
mov ecx, dword [ebp - 0x114]
add ecx, 0xc4
call fcn.00566280
mov dword [ebp - 0xac], eax
push 0x54
call fcn.00405970
mov dword [ebp - 0xdc], eax
mov byte [ebp - 4], 7
cmp dword [ebp - 0xdc], 0
je 0x51b7da
mov ecx, dword [ebp - 0xdc]
call fcn.00408900
mov dword [ebp - 0x128], eax
jmp 0x51b7e4
mov dword [ebp - 0x128], 0
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0xd8], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0xd8]
mov dword [ebp - 0xb4], ecx
lea ecx, [ebp - 0xa8]
call fcn.004058f0
mov dword [ebp - 0x9c], 0x190
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa0], 0x258
push 0
push 0
push 0
push 0x110
mov edx, dword [ebp - 0x114]
push edx
lea eax, [ebp - 0xa8]
push eax
push 0x50800000
push 0x5bc301
mov ecx, dword [ebp - 0xb4]
call fcn.0051fae0
push 0x5c6e20
push str.printcs
push 0x5f88a8
lea ecx, [ebp - 0xe0]
push ecx
call fcn.00402d80
add esp, 0xc
mov dword [ebp - 0x12c], eax
mov edx, dword [ebp - 0x12c]
mov dword [ebp - 0x130], edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x130]
push eax
lea ecx, [ebp - 0xe4]
push ecx
call fcn.00402d80
add esp, 0xc
mov dword [ebp - 0x134], eax
mov edx, dword [ebp - 0x134]
mov dword [ebp - 0x138], edx
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x138]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
mov ecx, dword [ebp - 0xb4]
call fcn.004a0b20
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xe4]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xe0]
call dword [sym.imp.mfc90.dll_Ordinal_601]
push 0
lea eax, [ebp - 0xb0]
push eax
mov ecx, dword [ebp - 0xb4]
call fcn.0049ea40
push 1
mov ecx, dword [ebp - 0xb4]
call fcn.0049a770
push 0x1900
call sub.mfc90.dll_Ordinal_265
add esp, 4
mov dword [ebp - 0xe8], eax
mov ecx, dword [ebp - 0xe8]
mov dword [ebp - 0x10], ecx
push 0x20
push 0
mov edx, dword [ebp - 0x10]
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0x24], 1
jmp 0x51b958
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x64
jge 0x51bb97
mov dword [ebp - 0xc8], 1
jmp 0x51b97d
mov ecx, dword [ebp - 0xc8]
add ecx, 1
mov dword [ebp - 0xc8], ecx
cmp dword [ebp - 0xc8], 0x32
jge 0x51bb92
mov dword [ebp - 0x98], 0
mov edx, 1
test edx, edx
je 0x51bb8d
mov eax, dword [ebp - 0xc8]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
lea edx, [ebp - 0xec]
push edx
mov ecx, dword [ebp - 0xb4]
call fcn.0049c980
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x140], eax
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x140]
push ecx
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_817]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xec]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov edx, dword [ebp - 0x98]
push edx
push 0x5c6e30
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_2481]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jl 0x51bb86
push 0xb
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0xf0]
push ecx
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_4507]
mov dword [ebp - 0x144], eax
mov edx, dword [ebp - 0x144]
mov dword [ebp - 0x148], edx
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x148]
push eax
lea ecx, [ebp - 0xbc]
call dword [sym.imp.mfc90.dll_Ordinal_817]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xf0]
call dword [sym.imp.mfc90.dll_Ordinal_601]
push 2
mov ecx, dword [ebp - 0x1c]
add ecx, 0xc
push ecx
lea edx, [ebp - 0xf4]
push edx
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_4507]
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x150], eax
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x150]
push ecx
lea ecx, [ebp - 0xb8]
call dword [sym.imp.mfc90.dll_Ordinal_817]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xf4]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [ebp - 0xbc]
call dword [sym.imp.mfc90.dll_Ordinal_3178]
cmp eax, 0xb
jne 0x51bb75
lea ecx, [ebp - 0xb8]
call dword [sym.imp.mfc90.dll_Ordinal_3178]
cmp eax, 2
jne 0x51bb75
lea ecx, [ebp - 0xbc]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
mov edx, dword [ebp - 0xc0]
shl edx, 5
add edx, dword [ebp - 0x10]
push edx
call fcn.0051fba0
add esp, 8
mov eax, dword [ebp - 0xc0]
shl eax, 5
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
mov dword [ecx + eax + 0x10], edx
mov eax, dword [ebp - 0xc0]
shl eax, 5
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc8]
mov dword [ecx + eax + 0x14], edx
lea ecx, [ebp - 0xb8]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
call dword [sym.imp.MSVCR90.dll_atoi]
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x18]
jle 0x51bb53
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0xc0]
shl edx, 5
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + edx + 0x18], ecx
mov edx, dword [ebp - 0xc0]
add edx, 1
mov dword [ebp - 0xc0], edx
mov eax, dword [ebp - 0x98]
add eax, 0xb
mov dword [ebp - 0x98], eax
jmp 0x51bb88
jmp 0x51bb8d
jmp 0x51b994
jmp 0x51b96e
jmp 0x51b94f
push 0x5f87ac
lea ecx, [ebp - 0x84]
call fcn.005686b0
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0xac]
mov dword [ebp - 0x14], ecx
jmp 0x51bbce
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x114]
add ecx, 0xc4
call fcn.005662d0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x51bf9b
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x114]
add ecx, 0xc4
call sub.mfc90.dll_Ordinal_3141
mov dword [ebp - 0x24], eax
push 0x5f8890
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_817]
mov ecx, dword [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x114]
add ecx, 0x158
call fcn.00415440
mov ecx, eax
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
push 0x5c6e34
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_5924]
push 0x5c6e38
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0xf8]
push eax
call fcn.00402d80
add esp, 0xc
mov dword [ebp - 0x154], eax
mov ecx, dword [ebp - 0x154]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0xf8]
call dword [sym.imp.mfc90.dll_Ordinal_601]
push 3
push 0
push 1
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
lea ecx, [ebp - 0x84]
call fcn.005688c0
mov dword [ebp - 0xc8], 0
jmp 0x51bc9d
mov ecx, dword [ebp - 0xc8]
add ecx, 1
mov dword [ebp - 0xc8], ecx
lea ecx, [ebp - 0x84]
call fcn.00569350
cmp dword [ebp - 0xc8], eax
jge 0x51bd54
mov edx, dword [ebp - 0xc8]
push edx
lea eax, [ebp - 0xfc]
push eax
lea ecx, [ebp - 0x84]
call fcn.00569770
mov dword [ebp - 0x158], eax
mov ecx, dword [ebp - 0x158]
mov dword [ebp - 0x15c], ecx
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x15c]
push edx
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_817]
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xfc]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [ebp - 0x24], 0
jmp 0x51bd15
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0xc0]
jge 0x51bd4f
mov edx, dword [ebp - 0x24]
shl edx, 5
add edx, dword [ebp - 0x10]
push edx
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_1603]
test eax, eax
jne 0x51bd4d
mov eax, dword [ebp - 0xc8]
add eax, 1
mov ecx, dword [ebp - 0x24]
shl ecx, 5
mov edx, dword [ebp - 0x10]
mov dword [edx + ecx + 0x1c], eax
jmp 0x51bd0c
jmp 0x51bc8e
lea ecx, [ebp - 0x84]
call fcn.00569470
test eax, eax
jne 0x51bf96
push 0
mov eax, dword [ebp - 0xb0]
push eax
mov ecx, dword [ebp - 0xb4]
call fcn.0049e180
mov dword [ebp - 0x1c], 1
jmp 0x51bd8d
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x18]
jg 0x51bf6e
mov dword [ebp - 0xc8], 0
jmp 0x51bdb4
mov eax, dword [ebp - 0xc8]
add eax, 1
mov dword [ebp - 0xc8], eax
lea ecx, [ebp - 0x84]
call fcn.00569350
cmp dword [ebp - 0xc8], eax
jge 0x51bf4d
mov dword [ebp - 0x24], 0
jmp 0x51bddd
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0xc0]
jge 0x51bf48
mov eax, dword [ebp - 0x24]
shl eax, 5
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + eax + 0x18]
cmp edx, dword [ebp - 0x1c]
jne 0x51bf43
mov eax, dword [ebp - 0x24]
shl eax, 5
mov ecx, dword [ebp - 0xc8]
add ecx, 1
mov edx, dword [ebp - 0x10]
cmp dword [edx + eax + 0x1c], ecx
jne 0x51bf43
lea eax, [ebp - 0x100]
push eax
mov ecx, dword [ebp - 0xc8]
push ecx
lea ecx, [ebp - 0x84]
call fcn.0056e820
mov ecx, eax
call fcn.00408d40
mov byte [ebp - 4], 0xf
lea edx, [ebp - 0x100]
push edx
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_817]
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x100]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x24]
shl ecx, 5
add ecx, dword [ebp - 0x10]
push ecx
push str._s._.2d
lea edx, [ebp - 0xbc]
push edx
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 0x10
mov eax, dword [ebp - 0x24]
shl eax, 5
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + eax + 0x14]
push edx
mov eax, dword [ebp - 0x24]
shl eax, 5
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + eax + 0x10]
push edx
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [ebp - 0xb4]
call fcn.0049c980
mov dword [ebp - 0x160], eax
mov ecx, dword [ebp - 0x160]
mov dword [ebp - 0x164], ecx
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x164]
push edx
lea ecx, [ebp - 0xb8]
call dword [sym.imp.mfc90.dll_Ordinal_817]
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x104]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
lea ecx, [ebp - 0xbc]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
lea ecx, [ebp - 0xb8]
call dword [sym.imp.mfc90.dll_Ordinal_5924]
lea ecx, [ebp - 0xb8]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
mov eax, dword [ebp - 0x24]
shl eax, 5
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + eax + 0x14]
push edx
mov eax, dword [ebp - 0x24]
shl eax, 5
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + eax + 0x10]
push edx
mov ecx, dword [ebp - 0xb4]
call fcn.0049ca20
jmp 0x51bdd4
jmp 0x51bda5
lea ecx, [ebp - 0x84]
call fcn.00569110
lea ecx, [ebp - 0x84]
call fcn.00569470
test eax, eax
je 0x51bf69
jmp 0x51bf6e
jmp 0x51bd84
cmp dword [0x5f8620], 0
jne 0x51bf84
mov ecx, dword [ebp - 0xb4]
call fcn.004a01b0
jmp 0x51bf91
push 0
mov ecx, dword [ebp - 0xb4]
call fcn.0049d490
jmp 0x51bd54
jmp 0x51bbb6
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x10c]
mov dword [ebp - 0x108], ecx
cmp dword [ebp - 0x108], 0
je 0x51bfd9
push 1
mov edx, dword [ebp - 0x108]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x108]
mov edx, dword [eax + 4]
call edx
mov dword [ebp - 0x168], eax
jmp 0x51bfe3
mov dword [ebp - 0x168], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
push ecx
call sub.mfc90.dll_Ordinal_800
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x84]
call fcn.005687e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x94]
call sub.mfc90.dll_Ordinal_663
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xc4]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb8]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xbc]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret