Function at 0x417750
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x460
mov eax, dword [0x5599f4]
mov esi, ecx
lea edi, [esi + 8]
mov ecx, edi
xor eax, ebp
mov dword [esp + 0x458], eax
lea eax, [esp + 0x18]
push eax
call fcn.00418750
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x18]
cmp dword [esi], 3
mov dword [esp], eax
jne 0x41780b
call fcn.0042fa90
test al, al
jne 0x41780b
lea ecx, [esp + 0x40]
call fcn.0042fac0
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov eax, dword [edi + eax + 0x30]
mov ecx, dword [eax + 4]
mov dword [esp + 0x444], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esp + 0x440]
push eax
call fcn.0041a2f0
add esp, 4
mov ecx, dword [esp + 0x444]
mov ebx, eax
test ecx, ecx
je 0x4177e6
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x4177e6
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov eax, dword [ebx]
mov ecx, ebx
push 0xa
call dword [eax + 0x20]
movsx eax, al
mov ecx, edi
push eax
call fcn.0041a460
mov ecx, edi
call fcn.00401c02
lea ecx, [esp + 0x40]
push edi
call fcn.0042ff90
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov eax, dword [edi + eax + 0x30]
mov ecx, dword [eax + 4]
mov dword [esp + 0x44], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esp + 0x40]
push eax
call fcn.0041a2f0
add esp, 4
mov ecx, dword [esp + 0x44]
mov ebx, eax
test ecx, ecx
je 0x417848
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x417848
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov eax, dword [ebx]
mov ecx, ebx
push 0xa
call dword [eax + 0x20]
movsx eax, al
mov ecx, edi
push eax
call fcn.0041a460
mov ecx, edi
call fcn.00401c02
lea edi, [esi + 0xc]
lea ebx, [esp + 0x440]
mov ecx, edi
push ebx
call fcn.0041a100
mov eax, dword [0x55aadc]
test eax, eax
je 0x4178ed
push ebx
push dword [esi + 0xa0]
push dword [esi + 0xa8]
push dword [esi + 0xa4]
push dword [esi]
call eax
add esp, 0x14
test al, al
je 0x4178ed
mov ecx, dword [esp + 0x454]
cmp ecx, 0x10
jb 0x417c2f
mov eax, dword [esp + 0x440]
inc ecx
cmp ecx, 0x1000
jb 0x4178df
test al, 0x1f
jne 0x417cbb
mov ecx, dword [eax - 4]
cmp ecx, eax
jae 0x417cbb
add eax, 0xfffffffc
sub eax, ecx
cmp eax, 0x20
mov eax, ecx
jae 0x417cbb
push eax
call fcn.004d4c09
add esp, 4
jmp 0x417c2f
test byte [0x559020], 2
jne 0x417923
cmp dword [esi], 2
jl 0x41798d
push 2
call fcn.004e06a8
add esp, 4
mov ecx, dword [esp + 0x450]
cmp dword [esp + 0x454], 0xf
jbe 0x417966
mov edx, dword [esp + 0x440]
jmp 0x41796d
cmp dword [esp + 0x454], 0xf
mov eax, ebx
jbe 0x417936
mov eax, dword [esp + 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 2
call fcn.004e06a8
add esp, 4
mov ecx, dword [esp + 0x450]
cmp dword [esp + 0x454], 0xf
jbe 0x41795f
mov ebx, dword [esp + 0x440]
push eax
push 1
push ecx
push ebx
jmp 0x417972
lea edx, [esp + 0x440]
push eax
push 1
push ecx
push edx
call fcn.004e168c
add esp, 0x10
push 2
call fcn.004e06a8
add esp, 4
push eax
call fcn.004e22ac
add esp, 4
test byte [0x559020], 1
je 0x4179d5
call 0x417cc0
test al, al
je 0x4179d5
mov eax, dword [esp + 0x450]
cmp dword [esp + 0x454], 0xf
jbe 0x4179b9
mov ecx, dword [esp + 0x440]
jmp 0x4179c0
lea ecx, [esp + 0x440]
push 0
lea edx, [esp + 0x44]
push edx
push eax
push ecx
push dword [0x55aaf8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esi], 3
jne 0x417bdc
mov ecx, dword [0x55ab54]
test ecx, ecx
je 0x417a10
mov eax, dword [esp + 0x450]
cmp dword [esp + 0x454], 0xf
jbe 0x417a02
mov edx, dword [esp + 0x440]
jmp 0x417a09
lea edx, [esp + 0x440]
push eax
push edx
call fcn.004324d0
cmp dword [esp + 0x454], 0xf
jbe 0x417a23
mov eax, dword [esp + 0x440]
jmp 0x417a2a
lea eax, [esp + 0x440]
push 0x400
push eax
lea eax, [esp + 0x48]
mov ebx, eax
push ebx
call fcn.004168a0
add esp, 0xc
push ebx
call fcn.00404580
add esp, 4
mov eax, dword [0x55aae4]
test eax, eax
je 0x417aba
mov eax, dword [0x55aae4]
cmp eax, 1
ja 0x417aad
push 0x55aae4
call fcn.00424d90
add esp, 4
test al, al
je 0x417aad
mov dword [0x55aaec], 0
mov dword [0x55aae8], 0
mov dword [0x55aaf4], 0
mov dword [0x55aaf0], 0
push 0x55aae4
push 0
push 0x55aae8
push 0x55aae4
call fcn.00424e50
add esp, 0x10
mov eax, dword [0x55aae4]
mov ecx, dword [eax + 8]
cmp ecx, dword [eax + 0xc]
jne 0x417ac4
call fcn.0042faa0
jmp 0x417bdc
mov eax, dword [0x55aae4]
cmp eax, 1
ja 0x417b20
push 0x55aae4
call fcn.00424d90
add esp, 4
test al, al
je 0x417b20
mov dword [0x55aaec], 0
mov dword [0x55aae8], 0
mov dword [0x55aaf4], 0
mov dword [0x55aaf0], 0
push 0x55aae4
push 0
push 0x55aae8
push 0x55aae4
call fcn.00424e50
add esp, 0x10
mov eax, dword [0x55aae4]
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x417b2f
mov ecx, dword [eax + 4]
mov eax, dword [eax]
lea eax, [eax + ecx*4 - 4]
lea ecx, [esp + 0x14]
push eax
call fcn.0041af50
mov eax, dword [esp + 0x14]
test eax, eax
je 0x417bd3
cmp dword [esp + 0x454], 0xf
jbe 0x417b5e
mov ecx, dword [esp + 0x440]
jmp 0x417b65
lea ecx, [esp + 0x440]
mov dword [esp + 0xc], ecx
add ecx, dword [esp]
mov dword [esp + 0x10], eax
mov dword [esp + 8], edi
mov dword [esp + 4], ecx
je 0x417b85
push ecx
call fcn.004dc120
add esp, 4
jmp 0x417b87
xor eax, eax
mov ecx, dword [esi + 0xa0]
mov edi, dword [esp + 0xc]
mov ebx, dword [esp]
mov edx, dword [esi + 0xa4]
add edi, ecx
sub ebx, ecx
mov ecx, dword [esi + 0xa8]
mov dword [esp + 0x38], edi
mov edi, dword [esp + 4]
mov dword [esp + 0x3c], ebx
lea ebx, [esp + 0x38]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], eax
lea eax, [esp + 0x30]
push eax
push ebx
push ecx
push edx
mov eax, dword [esp + 0x20]
push eax
call dword [eax + 4]
add esp, 0x14
mov edi, dword [esp + 8]
lea ecx, [esp + 0x14]
call fcn.0041af30
mov ecx, dword [esp + 0x454]
cmp ecx, 0x10
jb 0x417c24
mov eax, dword [esp + 0x440]
inc ecx
cmp ecx, 0x1000
jb 0x417c1b
test al, 0x1f
jne 0x417cbb
mov ecx, dword [eax - 4]
cmp ecx, eax
jae 0x417cbb
add eax, 0xfffffffc
sub eax, ecx
cmp eax, 0x20
mov eax, ecx
jae 0x417cbb
push eax
call fcn.004d4c09
add esp, 4
mov dword [esp + 0x454], 0xf
push dword [esi + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 8]
mov eax, dword [eax + 4]
mov dword [esi + eax + 8], 0x510038
mov eax, dword [esi + 8]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x50]
mov dword [esi + eax + 4], ecx
mov ecx, edi
mov dword [esi + 0xc], 0x510050
call fcn.00419a00
mov dword [esi + 0xc], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov edi, dword [esi + 0x40]
lea esi, [esi + 0x58]
test edi, edi
je 0x417c96
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x417c8d
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x417c8d
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push edi
call fcn.004d4c09
add esp, 4
mov dword [esi], vtable.std::ios_base.0
push esi
call fcn.004d61a9
add esp, 4
mov ecx, dword [esp + 0x458]
xor ecx, ebp
call fcn.004d4bc8
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004dc775
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x214
mov eax, dword [0x5599f4]
mov bl, 1
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [0x55aaf8], 0
jne 0x4180a8
mov esi, dword [0x55aad8]
test esi, esi
je 0x417da1
test byte [0x559020], 1
je 0x4180a8
cmp dword [esi + 0x14], 8
jb 0x417d08
mov esi, dword [esi]
push 0
push 0x80
push 4
push 0
push 3
push 4
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x55aaf8], eax
inc eax
cmp eax, 1
ja 0x4180a8
lea ebx, [ebp - 0x218]
mov word [ebp - 0x218], 0
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
cmp eax, 0x103
ja 0x4180a6
mov esi, dword [0x55aad8]
push ebx
call fcn.004dc2cd
add esp, 4
mov edi, eax
mov eax, dword [esi + 0x14]
cmp eax, edi
jae 0x417eb4
sub esp, 0xc
mov al, byte [ebp - 0x21c]
mov ecx, esi
mov byte [esp + 4], al
mov dword [esp + 8], ebx
mov dword [esp], edi
call fcn.00401822
mov edi, dword [0x55aad8]
lea eax, [edi + 0x14]
mov esi, edi
mov dword [ebp - 0x220], eax
jmp 0x417ee2
push 0x18
call fcn.004d4bd9
add esp, 4
mov esi, eax
lea ebx, [ebp - 0x218]
push 0x104
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], 0
push ebx
call fcn.004dc2cd
add esp, 4
mov edi, eax
cmp edi, 7
jbe 0x417e01
sub esp, 0xc
mov al, byte [ebp - 0x21c]
mov ecx, esi
mov byte [esp + 4], al
mov dword [esp + 8], ebx
mov dword [esp], edi
call fcn.00401822
jmp 0x417e19
mov eax, edi
mov dword [esi + 0x10], edi
add eax, eax
push eax
push ebx
push esi
call fcn.004d7b40
add esp, 0xc
mov word [esi + edi*2], 0
mov edi, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
mov ecx, esi
mov bl, 1
cmp edi, 7
jbe 0x417e2a
mov ecx, dword [esi]
test edx, edx
je 0x417e8b
mov ebx, edx
mov dword [ebp - 0x220], edi
add ebx, 0xffffffff
cmovae ebx, edx
lea edi, [ecx + ebx*2]
movzx ebx, word [ecx + ebx*2]
cmp ebx, 0x5c
je 0x417e77
mov ebx, edx
mov eax, edx
neg ebx
not eax
cmp ebx, eax
cmova eax, ebx
lea ebx, [eax + eax + 2]
nop dword [eax]
test ebx, ebx
je 0x417f4b
movzx eax, word [edi - 2]
add edi, 0xfffffffe
add ebx, 2
cmp eax, 0x5c
jne 0x417e60
sub edi, ecx
mov bl, 1
cmp edi, 0xfffffffe
jne 0x417e92
mov edi, dword [ebp - 0x220]
jmp 0x417f53
xor edx, edx
jmp 0x417f53
sar edi, 1
lea eax, [edi + 1]
cmp edx, eax
jb 0x4180bf
mov dword [esi + 0x10], eax
mov word [ecx + edi*2 + 2], 0
mov edx, dword [esi + 0x10]
mov edi, dword [esi + 0x14]
jmp 0x417f53
mov ecx, ebx
cmp eax, 8
mov ebx, esi
jb 0x417ebf
mov ebx, dword [esi]
lea eax, [esi + 0x14]
mov dword [esi + 0x10], edi
mov dword [ebp - 0x220], eax
mov eax, edi
add eax, eax
push eax
push ecx
push ebx
call fcn.004d75c0
add esp, 0xc
mov word [ebx + edi*2], 0
mov edi, esi
mov edx, dword [esi + 0x14]
mov ebx, edi
cmp edx, 8
jb 0x417eee
mov ebx, dword [esi]
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0x10]
movzx ebx, word [ebx + eax*2 - 2]
cmp ebx, 0x5c
jne 0x417f05
mov bl, 1
jmp 0x417ffe
cmp edx, eax
jne 0x417fde
sub esp, 0x10
mov al, byte [ebp - 0x21c]
mov ecx, esi
mov byte [esp + 4], al
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x50ffa8
mov dword [esp], 1
call fcn.00403110
mov esi, dword [0x55aad8]
mov bl, 1
lea ecx, [esi + 0x10]
lea edx, [esi + 0x14]
jmp 0x417ff9
mov edi, dword [ebp - 0x220]
mov bl, 1
mov eax, edi
sub eax, edx
cmp eax, 9
jae 0x417f89
sub esp, 0x10
mov al, byte [ebp - 0x21c]
mov ecx, esi
mov byte [esp + 4], al
mov dword [esp + 0xc], 9
mov dword [esp + 8], 0x510024
mov dword [esp], 9
call fcn.00403110
jmp 0x417fc6
lea eax, [edx + 9]
cmp edi, 7
mov ecx, esi
mov dword [esi + 0x10], eax
jbe 0x417f98
mov ecx, dword [esi]
movzx eax, word [0x510034]
movsd xmm0, qword [0x51002c]
movsd xmm1, qword [0x510024]
mov word [ecx + edx*2 + 0x10], ax
movsd qword [ecx + edx*2 + 8], xmm0
movsd qword [ecx + edx*2], xmm1
mov word [ecx + edx*2 + 0x12], 0
mov dword [0x55aad8], esi
test byte [0x559020], 1
jne 0x417d00
jmp 0x4180a8
lea ebx, [eax + 1]
cmp edx, 8
mov dword [ecx], ebx
jb 0x417fea
mov edi, dword [esi]
mov edx, dword [ebp - 0x220]
mov dword [edi + eax*2], 0x5c
mov bl, 1
mov eax, dword [esi + 0x10]
mov edx, dword [edx]
mov edi, edx
sub edi, eax
cmp edi, 9
jae 0x418034
sub esp, 0x10
mov al, byte [ebp - 0x21c]
mov ecx, esi
mov byte [esp + 4], al
mov dword [esp + 0xc], 9
mov dword [esp + 8], 0x510024
mov dword [esp], 9
call fcn.00403110
jmp 0x41806e
lea edi, [eax + 9]
cmp edx, 8
mov dword [ecx], edi
jb 0x418040
mov esi, dword [esi]
movzx ecx, word [0x510034]
movsd xmm0, qword [0x51002c]
movsd xmm1, qword [0x510024]
mov word [esi + eax*2 + 0x10], cx
movsd qword [esi + eax*2 + 8], xmm0
movsd qword [esi + eax*2], xmm1
mov word [esi + eax*2 + 0x12], 0
mov eax, dword [0x55aad8]
cmp dword [eax + 0x14], 8
jb 0x41807b
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x55aaf8], eax
inc eax
cmp eax, 1
ja 0x4180a8
mov dword [0x55aaf8], 0
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d4bc8
mov eax, ebx
add esp, 0x214
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00402f20
int3