Function at 0x451b30
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 0x451e04
cmp byte [ecx + 0x41], 0
je 0x451e04
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
jne 0x451b75
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 0x451b98
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]
cmp edx, 0x10
jb 0x451cb2
mov ebx, eax
mov dword [ebp - 0x28], ebx
test eax, eax
je 0x451bd8
mov ecx, eax
cmp edx, 0x10
jae 0x451bc1
lea ecx, [ebp - 0x1c]
cmp ecx, ebx
ja 0x451bd8
mov ecx, eax
cmp edx, 0x10
jae 0x451bcf
lea ecx, [ebp - 0x1c]
mov esi, dword [ebp - 0xc]
add ecx, esi
cmp ebx, ecx
jbe 0x451be3
call fcn.0051f89a
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
cmp ecx, 0xfffffffc
je 0x451c09
mov ecx, eax
cmp edx, 0x10
jae 0x451bf5
lea ecx, [ebp - 0x1c]
mov esi, dword [ebp - 0xc]
add ecx, esi
cmp ebx, ecx
jb 0x451c09
call fcn.0051f89a
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0xc]
cmp edx, 0x10
jb 0x451cbd
mov esi, eax
test eax, eax
je 0x451c3f
mov ecx, eax
cmp edx, 0x10
jae 0x451c25
lea ecx, [ebp - 0x1c]
cmp ecx, esi
ja 0x451c3f
mov ecx, eax
cmp edx, 0x10
jae 0x451c33
lea ecx, [ebp - 0x1c]
mov ebx, dword [ebp - 0xc]
add ecx, ebx
mov ebx, dword [ebp - 0x28]
cmp esi, ecx
jbe 0x451c4a
call fcn.0051f89a
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
cmp ecx, 0xfffffffc
je 0x451c68
cmp edx, 0x10
jae 0x451c5a
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
add eax, edx
cmp esi, eax
jb 0x451c68
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 0x451cc5
sub eax, 1
je 0x451ccc
sub eax, 2
lea ecx, [ebp - 0x20]
je 0x451dec
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 0x451bb7
lea esi, [ebp - 0x1c]
jmp 0x451c1b
mov eax, dword [ebp - 0x24]
mov byte [eax + 0x41], 0
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x451dd1
mov esi, eax
test eax, eax
je 0x451d02
mov ecx, eax
cmp edx, 0x10
jae 0x451ceb
lea ecx, [ebp - 0x1c]
cmp ecx, esi
ja 0x451d02
mov ecx, eax
cmp edx, 0x10
jae 0x451cf9
lea ecx, [ebp - 0x1c]
mov edi, dword [ebp - 0xc]
add ecx, edi
cmp esi, ecx
jbe 0x451d0d
call fcn.0051f89a
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
cmp ecx, 0xfffffffc
je 0x451d33
mov ecx, eax
cmp edx, 0x10
jae 0x451d1f
lea ecx, [ebp - 0x1c]
mov edi, dword [ebp - 0xc]
add ecx, edi
cmp esi, ecx
jb 0x451d33
call fcn.0051f89a
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x2c]
sub edi, esi
je 0x451db0
cmp edx, 0x10
jb 0x451dd9
mov esi, eax
test eax, eax
je 0x451d6a
mov ecx, eax
cmp edx, 0x10
jae 0x451d53
lea ecx, [ebp - 0x1c]
cmp ecx, esi
ja 0x451d6a
mov ecx, eax
cmp edx, 0x10
jae 0x451d61
lea ecx, [ebp - 0x1c]
mov ebx, dword [ebp - 0xc]
add ecx, ebx
cmp esi, ecx
jbe 0x451d75
call fcn.0051f89a
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
cmp ecx, 0xfffffffc
je 0x451d93
cmp edx, 0x10
jae 0x451d85
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
add eax, edx
cmp esi, eax
jb 0x451d93
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 0x451de1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
cmp byte [ecx + 0x41], 0
je 0x451de9
test edi, edi
jne 0x451ba5
push edi
push 8
lea ecx, [ebp - 0x20]
call fcn.0044ba60
jmp 0x451b9f
lea esi, [ebp - 0x1c]
jmp 0x451ce1
lea esi, [ebp - 0x1c]
jmp 0x451d49
lea ecx, [ebp - 0x20]
jmp 0x451c9a
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