Function at 0x40c7d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58c769
mov eax, dword fs:[0]
push eax
sub esp, 0x670
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 - 0x664], ecx
lea ecx, [ebp - 0x278]
call fcn.004021a0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x40c87c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5f8], eax
mov ecx, dword [ebp - 0x5f8]
add ecx, 2
mov dword [ebp - 0x660], ecx
mov edx, dword [ebp - 0x5f8]
mov ax, word [edx]
mov word [ebp - 0x600], ax
add dword [ebp - 0x5f8], 2
cmp word [ebp - 0x600], 0
jne 0x40c831
mov ecx, dword [ebp - 0x5f8]
sub ecx, dword [ebp - 0x660]
sar ecx, 1
mov dword [ebp - 0x62c], ecx
je 0x40c87c
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x278]
call fcn.00402300
jmp 0x40ccb2
lea ecx, [ebp - 0x3b0]
call fcn.004021a0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x3b0]
push eax
mov ecx, 0x614354
call fcn.00411d70
push 0
push 0x5de604
push 0x5de65c
lea ecx, [ebp - 0x3b0]
call fcn.00402ee0
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x5f4], eax
mov edx, 1
test edx, edx
je 0x40c906
mov eax, dword [ebp - 0x5f4]
movzx ecx, word [ebp + eax*2 - 0x218]
mov dword [ebp - 0x65c], ecx
mov edx, dword [ebp - 0x5f4]
sub edx, 1
mov dword [ebp - 0x5f4], edx
cmp dword [ebp - 0x65c], 0x5c
jne 0x40c904
jmp 0x40c906
jmp 0x40c8cd
mov eax, dword [ebp - 0x5f4]
lea ecx, [ebp + eax*2 - 0x214]
push ecx
lea ecx, [ebp - 0x350]
call fcn.00402270
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x5f4]
add edx, 1
mov dword [ebp - 0x5f4], edx
mov eax, dword [ebp - 0x5f4]
shl eax, 1
mov dword [ebp - 0x604], eax
cmp dword [ebp - 0x604], 0x208
jae 0x40c94e
jmp 0x40c953
call fcn.00559923
xor ecx, ecx
mov edx, dword [ebp - 0x604]
mov word [ebp + edx - 0x218], cx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x470]
call fcn.00402270
mov byte [ebp - 4], 3
push 0x5de6b4
lea ecx, [ebp - 0x470]
call fcn.00402330
push 0xffffffffffffffff
push 0x5de97c
lea ecx, [ebp - 0x350]
call fcn.00402790
mov ecx, eax
call fcn.00412b10
mov dword [ebp - 0x608], eax
lea ecx, [ebp - 0x350]
call fcn.00402790
cmp dword [ebp - 0x608], 0xffffffff
je 0x40ca15
mov ecx, dword [ebp - 0x608]
push ecx
push 0
lea edx, [ebp - 0x290]
push edx
lea ecx, [ebp - 0x350]
call fcn.00402790
mov ecx, eax
call fcn.00412b40
mov dword [ebp - 0x614], eax
mov eax, dword [ebp - 0x614]
mov dword [ebp - 0x61c], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x61c]
push ecx
lea ecx, [ebp - 0x350]
call fcn.004025e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x290]
call fcn.0042d070
lea edx, [ebp - 0x470]
push edx
lea ecx, [ebp - 0x278]
call fcn.004024a0
push str.Dump_
lea ecx, [ebp - 0x278]
call fcn.00402330
push str.Mini_
lea ecx, [ebp - 0x278]
call fcn.00402330
lea eax, [ebp - 0x350]
push eax
lea ecx, [ebp - 0x278]
call fcn.004024d0
push str.__:__
lea ecx, [ebp - 0x278]
call fcn.00402330
lea ecx, [ebp - 0x410]
call fcn.004021a0
mov byte [ebp - 4], 5
cmp dword [ebp + 0xc], 0
je 0x40cc01
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x5fc], ecx
mov edx, dword [ebp - 0x5fc]
add edx, 2
mov dword [ebp - 0x620], edx
mov eax, dword [ebp - 0x5fc]
mov cx, word [eax]
mov word [ebp - 0x5fe], cx
add dword [ebp - 0x5fc], 2
cmp word [ebp - 0x5fe], 0
jne 0x40ca9a
mov edx, dword [ebp - 0x5fc]
sub edx, dword [ebp - 0x620]
sar edx, 1
mov dword [ebp - 0x628], edx
je 0x40cc01
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x2f0]
call fcn.00402270
mov byte [ebp - 4], 6
push 0
push 0x5deacc
push 0x5dead0
lea ecx, [ebp - 0x2f0]
call fcn.00402ee0
push 0
push 0x5dead4
push 0x5dead8
lea ecx, [ebp - 0x2f0]
call fcn.00402ee0
push 0x5deadc
lea ecx, [ebp - 0x2f0]
call fcn.00403460
test eax, eax
je 0x40cb7a
push 1
push 0x5deae0
lea ecx, [ebp - 0x590]
push ecx
lea ecx, [ebp - 0x2f0]
call fcn.00402bf0
mov dword [ebp - 0x630], eax
mov edx, dword [ebp - 0x630]
mov dword [ebp - 0x638], edx
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x638]
push eax
lea ecx, [ebp - 0x2f0]
call fcn.004024a0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x590]
call fcn.00402230
lea ecx, [ebp - 0x2f0]
call fcn.00402790
mov ecx, eax
call fcn.0042e3d0
push eax
lea ecx, [ebp - 0x3b0]
call fcn.00402790
mov ecx, eax
call fcn.0042e3d0
push eax
push 0x5deae4
lea ecx, [ebp - 0x5f0]
push ecx
push 0x614354
call fcn.00411a20
add esp, 0x14
mov dword [ebp - 0x648], eax
mov edx, dword [ebp - 0x648]
mov dword [ebp - 0x658], edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x658]
push eax
lea ecx, [ebp - 0x410]
call fcn.004024a0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x5f0]
call fcn.00402230
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2f0]
call fcn.00402230
jmp 0x40cc64
lea ecx, [ebp - 0x3b0]
call fcn.00402790
mov ecx, eax
call fcn.0042e3d0
push eax
push str.__s_.dmp
lea ecx, [ebp - 0x530]
push ecx
push 0x614354
call fcn.00411a20
add esp, 0x10
mov dword [ebp - 0x610], eax
mov edx, dword [ebp - 0x610]
mov dword [ebp - 0x624], edx
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x624]
push eax
lea ecx, [ebp - 0x410]
call fcn.004024a0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x530]
call fcn.00402230
lea ecx, [ebp - 0x410]
push ecx
lea ecx, [ebp - 0x278]
call fcn.004024d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x410]
call fcn.00402230
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x470]
call fcn.00402230
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x350]
call fcn.00402230
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3b0]
call fcn.00402230
lea edx, [ebp - 0x278]
push edx
mov ecx, 0x614354
call fcn.00411ed0
push 0x5deb68
push 0
push 3
lea eax, [ebp - 0x670]
push eax
call fcn.00406240
mov ecx, dword [eax]
mov dword [ebp - 0x654], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x650], edx
mov eax, dword [eax + 8]
mov dword [ebp - 0x64c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
lea ecx, [ebp - 0x278]
call fcn.004026d0
push eax
push str._tasp::library_CreatePath__s_err_lu._n
sub esp, 0xc
mov ecx, esp
mov edx, dword [ebp - 0x654]
mov dword [ecx], edx
mov eax, dword [ebp - 0x650]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x64c]
mov dword [ecx + 8], edx
call fcn.00405320
add esp, 0x18
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea ecx, [ebp - 0x278]
call fcn.00402790
mov ecx, eax
call fcn.0042e3d0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x60c], eax
cmp dword [ebp - 0x60c], 0xffffffff
jne 0x40ce55
push str.DumpMiniOpenFile
lea ecx, [ebp - 0x4d0]
call fcn.00402270
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x4d0]
call fcn.004024d0
lea ecx, [ebp - 0x4d0]
call fcn.00402790
mov ecx, eax
call fcn.0042e3d0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x5debe8
push 0
push 3
lea ecx, [ebp - 0x67c]
push ecx
call fcn.00406240
mov edx, dword [eax]
mov dword [ebp - 0x644], edx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x640], ecx
mov edx, dword [eax + 8]
mov dword [ebp - 0x63c], edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
lea ecx, [ebp - 0x278]
call fcn.004026d0
push eax
push str._tasp::library_CreateFile__s_err_lu._n
sub esp, 0xc
mov eax, esp
mov ecx, dword [ebp - 0x644]
mov dword [eax], ecx
mov edx, dword [ebp - 0x640]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x63c]
mov dword [eax + 8], ecx
call fcn.00405320
add esp, 0x18
mov dword [ebp - 0x618], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4d0]
call fcn.00402230
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x278]
call fcn.00402230
mov eax, dword [ebp - 0x618]
jmp 0x40ce8d
mov edx, dword [ebp - 0x60c]
mov dword [ebp - 0x634], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x278]
call fcn.00402230
mov eax, dword [ebp - 0x634]
jmp 0x40ce8d
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 8