Function at 0x4517d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x594ccc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x3c], 0
mov dword [ebp - 0x24], ecx
je 0x451aaf
cmp byte [ecx + 0x42], 0
je 0x451aaf
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 0xffff
call edx
mov ecx, 0xffff
cmp cx, ax
jne 0x45181d
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x1c], 0
mov dword [ebp - 8], ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], 8
cmp ecx, 0x10
jae 0x451840
lea eax, [ebp - 0x1c]
push ebx
push esi
mov byte [eax + 8], 0
push edi
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
lea ecx, [ecx]
cmp edx, 0x10
jb 0x45195d
mov ebx, eax
mov dword [ebp - 0x28], ebx
test eax, eax
je 0x451883
mov ecx, eax
cmp edx, 0x10
jae 0x45186c
lea ecx, [ebp - 0x1c]
cmp ecx, ebx
ja 0x451883
mov ecx, eax
cmp edx, 0x10
jae 0x45187a
lea ecx, [ebp - 0x1c]
mov esi, dword [ebp - 0xc]
add ecx, esi
cmp ebx, ecx
jbe 0x45188e
call fcn.0051f89a
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
cmp ecx, 0xfffffffc
je 0x4518b4
mov ecx, eax
cmp edx, 0x10
jae 0x4518a0
lea ecx, [ebp - 0x1c]
mov esi, dword [ebp - 0xc]
add ecx, esi
cmp ebx, ecx
jb 0x4518b4
call fcn.0051f89a
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0xc]
cmp edx, 0x10
jb 0x451968
mov esi, eax
test eax, eax
je 0x4518ea
mov ecx, eax
cmp edx, 0x10
jae 0x4518d0
lea ecx, [ebp - 0x1c]
cmp ecx, esi
ja 0x4518ea
mov ecx, eax
cmp edx, 0x10
jae 0x4518de
lea ecx, [ebp - 0x1c]
mov ebx, dword [ebp - 0xc]
add ecx, ebx
mov ebx, dword [ebp - 0x28]
cmp esi, ecx
jbe 0x4518f5
call fcn.0051f89a
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
cmp ecx, 0xfffffffc
je 0x451913
cmp edx, 0x10
jae 0x451905
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
add eax, edx
cmp esi, eax
jb 0x451913
call fcn.0051f89a
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x24]
add ebx, edi
push ebx
push esi
add eax, 0x44
push eax
call edx
sub eax, 0
je 0x451970
sub eax, 1
je 0x451977
sub eax, 2
lea ecx, [ebp - 0x20]
je 0x451a97
call fcn.00449890
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
lea ebx, [ebp - 0x1c]
mov dword [ebp - 0x28], ebx
jmp 0x451862
lea esi, [ebp - 0x1c]
jmp 0x4518c6
mov eax, dword [ebp - 0x24]
mov byte [eax + 0x42], 0
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x451a7c
mov esi, eax
test eax, eax
je 0x4519ad
mov ecx, eax
cmp edx, 0x10
jae 0x451996
lea ecx, [ebp - 0x1c]
cmp ecx, esi
ja 0x4519ad
mov ecx, eax
cmp edx, 0x10
jae 0x4519a4
lea ecx, [ebp - 0x1c]
mov edi, dword [ebp - 0xc]
add ecx, edi
cmp esi, ecx
jbe 0x4519b8
call fcn.0051f89a
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
cmp ecx, 0xfffffffc
je 0x4519de
mov ecx, eax
cmp edx, 0x10
jae 0x4519ca
lea ecx, [ebp - 0x1c]
mov edi, dword [ebp - 0xc]
add ecx, edi
cmp esi, ecx
jb 0x4519de
call fcn.0051f89a
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x2c]
sub edi, esi
je 0x451a5b
cmp edx, 0x10
jb 0x451a84
mov esi, eax
test eax, eax
je 0x451a15
mov ecx, eax
cmp edx, 0x10
jae 0x4519fe
lea ecx, [ebp - 0x1c]
cmp ecx, esi
ja 0x451a15
mov ecx, eax
cmp edx, 0x10
jae 0x451a0c
lea ecx, [ebp - 0x1c]
mov ebx, dword [ebp - 0xc]
add ecx, ebx
cmp esi, ecx
jbe 0x451a20
call fcn.0051f89a
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
cmp ecx, 0xfffffffc
je 0x451a3e
cmp edx, 0x10
jae 0x451a30
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
add eax, edx
cmp esi, eax
jb 0x451a3e
call fcn.0051f89a
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x4c]
push ecx
push edi
push 1
push esi
call fcn.00522696
add esp, 0x10
cmp edi, eax
jne 0x451a8c
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
cmp byte [ecx + 0x42], 0
je 0x451a94
test edi, edi
jne 0x451850
push edi
push 8
lea ecx, [ebp - 0x20]
call fcn.0044ba60
jmp 0x451847
lea esi, [ebp - 0x1c]
jmp 0x45198c
lea esi, [ebp - 0x1c]
jmp 0x4519f4
lea ecx, [ebp - 0x20]
jmp 0x451945
lea ecx, [ebp - 0x20]
call fcn.00449890
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.0051d23b
mov esp, ebp
pop ebp
ret