Function at 0x452af0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572a98
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5fc150]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [ebp + 8]
cmp ecx, 0xffffffff
jne 0x452b2c
xor eax, eax
jmp 0x452ce7
mov eax, dword [ebx + 0x20]
mov edx, dword [eax]
test edx, edx
je 0x452b5a
mov esi, dword [ebx + 0x30]
mov edi, dword [esi]
lea eax, [edi + edx]
cmp edx, eax
jae 0x452b5a
lea eax, [edi - 1]
mov dword [esi], eax
mov ecx, dword [ebx + 0x20]
mov edx, dword [ecx]
lea eax, [edx + 1]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov byte [edx], al
jmp 0x452ce7
cmp dword [ebx + 0x4c], 0
jne 0x452b68
or eax, 0xffffffff
jmp 0x452ce7
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x452b89
mov ecx, dword [ebx + 0x50]
mov edx, dword [ebx + 0x54]
mov dword [esi], ecx
sub edx, ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebp + 8]
mov dword [eax], edx
cmp dword [ebx + 0x38], 0
jne 0x452bab
push dword [ebx + 0x4c]
movsx eax, cl
push eax
call fcn.00554995
add esp, 8
cmp eax, 0xffffffff
je 0x452b60
mov eax, dword [ebp + 8]
jmp 0x452ce7
mov byte [ebp - 0x29], cl
xor eax, eax
mov ecx, 0xf
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], 8
cmp ecx, 0x10
jae 0x452be6
lea eax, [ebp - 0x28]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov edi, esi
cmp eax, 0x10
jae 0x452c03
lea edi, [ebp - 0x28]
mov esi, edi
mov ecx, dword [ebx + 0x38]
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x18]
add eax, edi
mov edx, dword [ecx]
push eax
push esi
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x29]
push eax
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x452cb4
cmp eax, 1
jg 0x452c95
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x28]
mov ecx, esi
cmp eax, 0x10
jae 0x452c43
lea ecx, [ebp - 0x28]
mov edi, dword [ebp - 0x30]
sub edi, ecx
je 0x452c6b
cmp eax, 0x10
jae 0x452c52
lea esi, [ebp - 0x28]
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.00554cd1
add esp, 0x10
cmp edi, eax
jne 0x452cb4
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x28]
lea ecx, [ebp - 0x29]
mov byte [ebx + 0x3d], 1
cmp dword [ebp - 0x34], ecx
jne 0x452caf
test edi, edi
jne 0x452bf7
cmp dword [ebp - 0x18], 0x20
jae 0x452cb4
push edi
push 8
lea ecx, [ebp - 0x28]
call fcn.00406470
jmp 0x452bf1
cmp eax, 3
jne 0x452cb4
push dword [ebx + 0x4c]
movsx eax, byte [ebp - 0x29]
push eax
call fcn.00554995
add esp, 8
cmp eax, 0xffffffff
je 0x452cb4
mov ebx, dword [ebp + 8]
jmp 0x452cb7
or ebx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x452cd3
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407220
mov dword [ebp - 0x14], 0xf
mov eax, ebx
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052c233
mov esp, ebp
pop ebp
ret 4