Function at 0x1002edf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x1002ee1b
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.10012db0
jmp 0x1002ef8e
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x20]
cmp dword [ecx], 0
je 0x1002ee3f
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x30]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
jmp 0x1002ee46
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
cdq
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
cmp dword [ebp + 0x10], 0
jl 0x1002ef40
jg 0x1002ee66
cmp dword [ebp + 0xc], 0
jbe 0x1002ef40
cmp dword [ebp - 0x20], 0
jl 0x1002ef40
jg 0x1002ee7c
cmp dword [ebp - 0x24], 0
jbe 0x1002ef40
mov edx, dword [ebp + 0x10]
cmp edx, dword [ebp - 0x20]
jg 0x1002ee9a
jl 0x1002ee8e
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x24]
jae 0x1002ee9a
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x20]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov byte [ebp - 1], 0
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x1002eee5
mov dword [ebp - 0xc], 0
jmp 0x1002eec9
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jae 0x1002eee3
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0xc]
mov al, byte [edx]
mov byte [ecx], al
jmp 0x1002eec0
jmp 0x1002eef9
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.100479d0
add esp, 0xc
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp + 8]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp - 0x24]
mov eax, dword [ebp + 0x10]
sbb eax, dword [ebp - 0x20]
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x30]
mov ecx, dword [eax]
sub ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x30]
mov dword [eax], ecx
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x20]
mov eax, dword [edx]
add eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x20]
mov dword [edx], eax
cmp dword [ebp + 0x10], 0
jl 0x1002ef82
jg 0x1002ef4e
cmp dword [ebp + 0xc], 0
jbe 0x1002ef82
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
je 0x1002ef82
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x4c]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 1
mov ecx, dword [ebp + 8]
push ecx
call fcn.10050a93
add esp, 0x10
xor edx, edx
mov ecx, dword [ebp + 0xc]
sub ecx, eax
mov eax, dword [ebp + 0x10]
sbb eax, edx
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x28]
sbb edx, dword [ebp + 0x10]
mov esp, ebp
pop ebp
ret 0xc