Function at 0x40c6a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b24d1
mov eax, dword fs:[0]
push eax
sub esp, 0x4d4
mov eax, dword [0x639210]
xor eax, esp
mov dword [esp + 0x4cc], eax
push esi
push edi
mov eax, dword [0x639210]
xor eax, esp
push eax
lea eax, [esp + 0x4e0]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
xor eax, eax
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], 0
mov word [esp + 0x8c], ax
mov dword [esp + 0x4e8], eax
mov dword [esp + 0xb8], 0xf
mov dword [esp + 0xb4], eax
mov byte [esp + 0xa4], al
mov dword [esp + 0xd0], 7
mov dword [esp + 0xcc], eax
mov word [esp + 0xbc], ax
mov dword [esp + 0xe8], 0xf
mov dword [esp + 0xe4], eax
mov byte [esp + 0xd4], al
push eax
push 0x6079a0
lea ecx, [esp + 0x94]
mov byte [esp + 0x4f0], 3
call fcn.0041d070
mov dword [esp + 0x4e8], 4
xor eax, eax
mov dword [esp + 0x100], 7
mov dword [esp + 0xfc], 0
mov word [esp + 0xec], ax
mov dword [esp + 0x118], 0xf
mov dword [esp + 0x114], eax
mov byte [esp + 0x104], al
mov dword [esp + 0x130], 7
mov dword [esp + 0x12c], eax
mov word [esp + 0x11c], ax
mov dword [esp + 0x148], 0xf
mov dword [esp + 0x144], eax
mov byte [esp + 0x134], al
push eax
push 0x6079a0
lea ecx, [esp + 0xf4]
mov byte [esp + 0x4f0], 8
call fcn.0041d070
lea eax, [esp + 0xec]
mov byte [esp + 0x4e8], 9
push eax
call fcn.00410e50
push ecx
push 0x6041b4
push 0x604044
lea ecx, [esp + 0xf8]
call fcn.00402df0
push 0x104
lea eax, [esp + 0x2d0]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, eax
lea ecx, [esi + esi]
dec esi
cmp word [esp + ecx + 0x2cc], 0x5c
jne 0x40c843
lea eax, [esp + 0x2d0]
lea eax, [eax + esi*2]
push eax
lea ecx, [esp + 0x210]
call fcn.004022c0
inc esi
mov byte [esp + 0x4e8], 0xa
add esi, esi
cmp esi, 0x208
jae 0x40cdbe
xor eax, eax
lea ecx, [esp + 0x14c]
mov word [esp + esi + 0x2cc], ax
lea eax, [esp + 0x2cc]
push eax
call fcn.004022c0
push 1
push 0x60799c
lea ecx, [esp + 0x154]
mov byte [esp + 0x4f0], 0xb
call fcn.00411aa0
push 1
push ecx
push 0x607840
lea ecx, [esp + 0x218]
call fcn.004138b0
cmp eax, 0xffffffff
je 0x40c91e
push eax
push 0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x218]
call fcn.00411c30
lea ecx, [esp + 0x20c]
mov byte [esp + 0x4e8], 0xc
cmp ecx, eax
je 0x40c903
push 0xffffffffffffffff
push 0
push eax
call fcn.0041cd00
mov byte [esp + 0x4e8], 0xb
cmp dword [esp + 0x20], 8
jb 0x40c91e
push dword [esp + 0xc]
call fcn.0043f3a3
add esp, 4
cmp dword [esp + 0x160], 8
lea edx, [esp + 0x14c]
cmovae edx, dword [esp + 0x14c]
cmp word [edx], 0
jne 0x40c93f
xor ecx, ecx
jmp 0x40c953
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c944
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x94]
call fcn.0041d070
push 5
push str.Dump_
lea ecx, [esp + 0x94]
call fcn.00411aa0
push 5
push str.Mini_
lea ecx, [esp + 0x94]
call fcn.00411aa0
cmp dword [esp + 0x220], 8
lea edx, [esp + 0x20c]
cmovae edx, dword [esp + 0x20c]
cmp word [edx], 0
jne 0x40c9a8
xor ecx, ecx
jmp 0x40c9bf
mov ecx, edx
lea esi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c9b0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x94]
call fcn.00411aa0
push 1
push 0x605670
lea ecx, [esp + 0x94]
call fcn.00411aa0
lea ecx, [esp + 0x26c]
call fcn.00402190
mov byte [esp + 0x4e8], 0xd
test edi, edi
je 0x40cb1a
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ca01
sub ecx, edx
sar ecx, 1
je 0x40cb1a
push edi
lea ecx, [esp + 0x1b0]
call fcn.004022c0
push ecx
push 0x605670
push 0x604044
lea ecx, [esp + 0x1b8]
mov byte [esp + 0x4f4], 0xe
call fcn.00402df0
push ecx
push 0x60799c
push 0x603100
lea ecx, [esp + 0x1b8]
call fcn.00402df0
push 0x60799c
lea ecx, [esp + 0x1b0]
call fcn.004032b0
test eax, eax
je 0x40caac
push 1
push 0x60799c
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1b8]
call fcn.00402bf0
push eax
lea ecx, [esp + 0x1b0]
mov byte [esp + 0x4ec], 0xf
call fcn.00402530
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4e8], 0xe
call fcn.00402220
cmp dword [esp + 0x1c0], 8
lea ecx, [esp + 0x1ac]
lea eax, [esp + 0xec]
cmovae ecx, dword [esp + 0x1ac]
cmp dword [esp + 0x100], 8
push ecx
cmovae eax, dword [esp + 0xf0]
push eax
push 0x605674
lea eax, [esp + 0x38]
push eax
push 0x6495d0
call fcn.00410a60
add esp, 0x14
push eax
lea ecx, [esp + 0x270]
mov byte [esp + 0x4ec], 0x10
call fcn.00402530
lea ecx, [esp + 0x2c]
call fcn.00402220
lea ecx, [esp + 0x1ac]
jmp 0x40cb91
cmp dword [esp + 0x100], 8
lea eax, [esp + 0xec]
cmovae eax, dword [esp + 0xec]
push eax
push str.__s_.dmp
lea eax, [esp + 0x34]
push eax
push 0x6495d0
call fcn.00410a60
add esp, 0x10
mov edx, eax
mov byte [esp + 0x4e8], 0x11
cmp dword [edx + 0x14], 8
jb 0x40cb5b
mov edx, dword [edx]
cmp word [edx], 0
jne 0x40cb65
xor ecx, ecx
jmp 0x40cb7f
mov ecx, edx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cb70
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x274]
call fcn.0041d070
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4e8], 0xd
call fcn.00402220
cmp dword [esp + 0x280], 8
lea edx, [esp + 0x26c]
cmovae edx, dword [esp + 0x26c]
cmp word [edx], 0
jne 0x40cbbf
xor ecx, ecx
jmp 0x40cbd3
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cbc4
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x94]
call fcn.00411aa0
lea ecx, [esp + 0x26c]
call fcn.00402220
lea ecx, [esp + 0x14c]
call fcn.00402220
lea ecx, [esp + 0x20c]
call fcn.00402220
lea ecx, [esp + 0xec]
mov byte [esp + 0x4e8], 4
call fcn.00402220
lea eax, [esp + 0x8c]
push eax
call fcn.00410f40
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], 0x6056d0
mov dword [esp + 0x10], 0
call edi
push eax
push ecx
lea ecx, [esp + 0x94]
call fcn.004026b0
movq xmm0, qword [esp + 0x10]
push eax
push str._tasp::library_CreatePath__s_err_lu._n
sub esp, 0xc
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 3
call fcn.00404e40
add esp, 0x18
lea eax, [esp + 0x8c]
cmp dword [esp + 0xa0], 8
cmovae eax, dword [esp + 0x8c]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40cdae
push str.DumpMiniOpenFile
lea ecx, [esp + 0x150]
call fcn.004022c0
mov byte [esp + 0x4e8], 0x12
lea edx, [esp + 0x8c]
cmp dword [esp + 0xa0], 8
cmovae edx, dword [esp + 0x8c]
cmp word [edx], 0
jne 0x40cce5
xor ecx, ecx
jmp 0x40ccff
mov ecx, edx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ccf0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x154]
call fcn.00411aa0
cmp dword [esp + 0x160], 8
lea eax, [esp + 0x14c]
cmovae eax, dword [esp + 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [esp + 0xc], 0x605780
mov dword [esp + 0x10], 0
call edi
push eax
push ecx
lea ecx, [esp + 0x94]
call fcn.004026b0
movq xmm0, qword [esp + 0x10]
push eax
push str._tasp::library_CreateFile__s_err_lu._n
sub esp, 0xc
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 3
call fcn.00404e40
add esp, 0x18
lea ecx, [esp + 0x14c]
call fcn.00402220
lea ecx, [esp + 0x8c]
call fcn.00402220
xor eax, eax
mov ecx, dword [esp + 0x4e0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x4cc]
xor ecx, esp
call fcn.00567455
mov esp, ebp
pop ebp
ret 8
lea ecx, [esp + 0x8c]
call fcn.00402220
mov eax, esi
jmp 0x40cd89
call fcn.00568563
int3