Function at 0x4567d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x594ccc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov edx, ecx
mov dword [ebp - 0x24], edx
cmp ebx, 0xffffffff
jne 0x456801
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [edx + 0x24]
cmp dword [ecx], 0
push esi
je 0x456839
mov eax, dword [edx + 0x34]
mov ecx, dword [ecx]
mov esi, dword [eax]
add esi, ecx
cmp ecx, esi
jae 0x456839
dec dword [eax]
mov eax, dword [edx + 0x24]
mov ecx, dword [eax]
lea edx, [ecx + 1]
mov dword [eax], edx
mov byte [ecx], bl
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edx + 0x4c]
test eax, eax
je 0x456858
cmp dword [edx + 0x3c], 0
jne 0x45686d
push eax
movsx eax, bl
push eax
call fcn.00521b77
add esp, 8
cmp eax, 0xffffffff
jne 0x456825
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret 4
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x1c], 0
mov byte [ebp - 0x28], bl
mov dword [ebp - 8], ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], 8
cmp ecx, 0x10
jae 0x456893
lea eax, [ebp - 0x1c]
mov byte [eax + 8], 0
push edi
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
mov edi, edi
cmp edx, 0x10
jb 0x456aba
mov ebx, eax
mov dword [ebp - 0x2c], ebx
test eax, eax
je 0x4568d3
mov ecx, eax
cmp edx, 0x10
jae 0x4568bc
lea ecx, [ebp - 0x1c]
cmp ecx, ebx
ja 0x4568d3
mov ecx, eax
cmp edx, 0x10
jae 0x4568ca
lea ecx, [ebp - 0x1c]
mov esi, dword [ebp - 0xc]
add ecx, esi
cmp ebx, ecx
jbe 0x4568de
call fcn.0051f89a
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
cmp ecx, 0xfffffffc
je 0x456904
mov ecx, eax
cmp edx, 0x10
jae 0x4568f0
lea ecx, [ebp - 0x1c]
mov esi, dword [ebp - 0xc]
add ecx, esi
cmp ebx, ecx
jb 0x456904
call fcn.0051f89a
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0xc]
cmp edx, 0x10
jb 0x456ac5
mov esi, eax
test eax, eax
je 0x45693a
mov ecx, eax
cmp edx, 0x10
jae 0x456920
lea ecx, [ebp - 0x1c]
cmp ecx, esi
ja 0x45693a
mov ecx, eax
cmp edx, 0x10
jae 0x45692e
lea ecx, [ebp - 0x1c]
mov ebx, dword [ebp - 0xc]
add ecx, ebx
mov ebx, dword [ebp - 0x2c]
cmp esi, ecx
jbe 0x456945
call fcn.0051f89a
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
cmp ecx, 0xfffffffc
je 0x456963
cmp edx, 0x10
jae 0x456955
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
add eax, edx
cmp esi, eax
jb 0x456963
call fcn.0051f89a
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
lea eax, [ebp - 0x34]
push eax
add ebx, edi
push ebx
push esi
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
add eax, 0x44
push eax
call edx
test eax, eax
jl 0x456b57
cmp eax, 1
jg 0x456add
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x456acd
mov esi, eax
test eax, eax
je 0x4569d2
mov ecx, eax
cmp edx, 0x10
jae 0x4569bb
lea ecx, [ebp - 0x1c]
cmp ecx, esi
ja 0x4569d2
mov ecx, eax
cmp edx, 0x10
jae 0x4569c9
lea ecx, [ebp - 0x1c]
mov edi, dword [ebp - 0xc]
add ecx, edi
cmp esi, ecx
jbe 0x4569dd
call fcn.0051f89a
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
cmp ecx, 0xfffffffc
je 0x456a03
mov ecx, eax
cmp edx, 0x10
jae 0x4569ef
lea ecx, [ebp - 0x1c]
mov edi, dword [ebp - 0xc]
add ecx, edi
cmp esi, ecx
jb 0x456a03
call fcn.0051f89a
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x34]
sub edi, esi
je 0x456a84
cmp edx, 0x10
jb 0x456ad5
mov esi, eax
test eax, eax
je 0x456a3a
mov ecx, eax
cmp edx, 0x10
jae 0x456a23
lea ecx, [ebp - 0x1c]
cmp ecx, esi
ja 0x456a3a
mov ecx, eax
cmp edx, 0x10
jae 0x456a31
lea ecx, [ebp - 0x1c]
mov ebx, dword [ebp - 0xc]
add ecx, ebx
cmp esi, ecx
jbe 0x456a45
call fcn.0051f89a
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
cmp ecx, 0xfffffffc
je 0x456a63
cmp edx, 0x10
jae 0x456a55
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
add eax, edx
cmp esi, eax
jb 0x456a63
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 0x456b57
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
mov byte [ecx + 0x41], 1
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x30], ecx
jne 0x456b39
test edi, edi
ja 0x4568a0
cmp dword [ebp - 0xc], 0x20
lea ecx, [ebp - 0x20]
jae 0x456b5a
push 0
push 8
call fcn.0044ba60
jmp 0x456898
lea ebx, [ebp - 0x1c]
mov dword [ebp - 0x2c], ebx
jmp 0x4568b2
lea esi, [ebp - 0x1c]
jmp 0x456916
lea esi, [ebp - 0x1c]
jmp 0x4569b1
lea esi, [ebp - 0x1c]
jmp 0x456a19
cmp eax, 3
jne 0x456b57
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x4c]
mov ecx, dword [ebp - 0x28]
push eax
push ecx
call fcn.00444f40
add esp, 8
test al, al
je 0x456b19
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x20]
call fcn.00449890
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x20]
or esi, 0xffffffff
call fcn.00449890
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x20]
call fcn.00449890
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x20]
call fcn.00449890
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.0051d23b
mov esp, ebp
pop ebp
ret 4