Function at 0x100252a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x10094084]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x6c], 0xffffffff
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp + 8]
jne 0x100252ce
mov dword [ebp - 0x4c], 1
jmp 0x100252d5
mov dword [ebp - 0x4c], 0
movzx ecx, byte [ebp - 0x4c]
test ecx, ecx
je 0x1002530e
cmp dword [ebp + 8], 0xffffffff
je 0x100252eb
mov edx, dword [ebp + 8]
mov dword [ebp - 0x54], edx
jmp 0x10025306
or eax, 0xffffffff
jne 0x100252f9
mov dword [ebp - 0x50], 1
jmp 0x10025300
mov dword [ebp - 0x50], 0
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x54], ecx
mov eax, dword [ebp - 0x54]
jmp 0x100254d0
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x20]
mov ecx, dword [eax]
mov dword [ebp - 0x70], ecx
cmp dword [ebp - 0x70], 0
je 0x1002535a
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x20]
mov ecx, dword [eax]
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x30]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x20]
mov ecx, dword [edx]
add ecx, dword [eax]
cmp dword [ebp - 0x74], ecx
jae 0x1002535a
mov dl, byte [ebp + 8]
mov byte [ebp - 0x39], dl
mov ecx, dword [ebp - 0x38]
call fcn.10008a50
mov cl, byte [ebp - 0x39]
mov byte [eax], cl
mov eax, dword [ebp + 8]
jmp 0x100254d0
mov edx, dword [ebp - 0x38]
cmp dword [edx + 0x4c], 0
jne 0x1002536b
or eax, 0xffffffff
jmp 0x100254d0
mov ecx, dword [ebp - 0x38]
call fcn.10025010
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x38], 0
jne 0x100253d0
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x4c]
mov dword [ebp - 0x78], edx
mov al, byte [ebp + 8]
mov byte [ebp - 0x3a], al
mov ecx, dword [ebp - 0x78]
push ecx
movsx edx, byte [ebp - 0x3a]
push edx
call fcn.100433e9
add esp, 8
cmp eax, 0xffffffff
je 0x100253aa
mov dword [ebp - 0x58], 1
jmp 0x100253b1
mov dword [ebp - 0x58], 0
movzx eax, byte [ebp - 0x58]
test eax, eax
je 0x100253c1
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x5c], ecx
jmp 0x100253c8
mov dword [ebp - 0x5c], 0xffffffff
mov eax, dword [ebp - 0x5c]
jmp 0x100254d0
mov dword [ebp - 0x84], 0x20
mov dl, byte [ebp + 8]
mov byte [ebp - 0x2a], dl
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x60]
mov eax, dword [edx]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x7c], ecx
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x29]
push eax
lea ecx, [ebp - 0x2a]
push ecx
mov edx, dword [ebp - 0x38]
add edx, 0x40
push edx
mov ecx, dword [ebp - 0x60]
call dword [ebp - 0x7c]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x10025433
cmp dword [ebp - 0x44], 1
je 0x10025433
cmp dword [ebp - 0x44], 3
je 0x1002547c
jmp 0x100254cd
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
sub eax, ecx
mov dword [ebp - 0x48], eax
je 0x10025463
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
push 1
lea edx, [ebp - 0x28]
push edx
call fcn.10043043
add esp, 0x10
cmp dword [ebp - 0x48], eax
je 0x10025463
or eax, 0xffffffff
jmp 0x100254d0
mov eax, dword [ebp - 0x38]
mov byte [eax + 0x3d], 1
lea ecx, [ebp - 0x2a]
cmp dword [ebp - 0x34], ecx
je 0x10025477
mov eax, dword [ebp + 8]
jmp 0x100254d0
or eax, 0xffffffff
jmp 0x100254d0
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x4c]
mov dword [ebp - 0x80], eax
mov cl, byte [ebp - 0x2a]
mov byte [ebp - 0x40], cl
mov edx, dword [ebp - 0x80]
push edx
movsx eax, byte [ebp - 0x40]
push eax
call fcn.100433e9
add esp, 8
cmp eax, 0xffffffff
je 0x100254aa
mov dword [ebp - 0x64], 1
jmp 0x100254b1
mov dword [ebp - 0x64], 0
movzx ecx, byte [ebp - 0x64]
test ecx, ecx
je 0x100254c1
mov edx, dword [ebp + 8]
mov dword [ebp - 0x68], edx
jmp 0x100254c8
mov dword [ebp - 0x68], 0xffffffff
mov eax, dword [ebp - 0x68]
jmp 0x100254d0
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100375db
mov esp, ebp
pop ebp
ret 4