Function at 0x1002df70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x100a7084]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x90], 0xffffffff
mov eax, dword [ebp - 0x90]
cmp eax, dword [ebp + 8]
jne 0x1002dfa4
mov dword [ebp - 0x58], 1
jmp 0x1002dfab
mov dword [ebp - 0x58], 0
mov cl, byte [ebp - 0x58]
mov byte [ebp - 0x3b], cl
movzx edx, byte [ebp - 0x3b]
test edx, edx
je 0x1002e007
mov dword [ebp - 0xa4], 0xffffffff
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0xa4]
je 0x1002dfd6
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x60], ecx
jmp 0x1002dff9
mov dword [ebp - 0x70], 0xffffffff
cmp dword [ebp - 0x70], 0
jne 0x1002dfec
mov dword [ebp - 0x5c], 1
jmp 0x1002dff3
mov dword [ebp - 0x5c], 0
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
jmp 0x1002e25f
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x20]
mov eax, dword [edx]
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
je 0x1002e085
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x20]
mov eax, dword [edx]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x30]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x20]
mov eax, dword [ecx]
add eax, dword [edx]
cmp dword [ebp - 0x7c], eax
jae 0x1002e085
mov cl, byte [ebp - 0x41]
mov byte [ebp - 0x3a], cl
mov dl, byte [ebp + 8]
mov byte [ebp - 0x3a], dl
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x30]
mov edx, dword [ecx]
sub edx, 1
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x30]
mov dword [ecx], edx
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x20]
mov ecx, dword [eax]
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x20]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x20]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x80]
mov dl, byte [ebp - 0x3a]
mov byte [ecx], dl
mov eax, dword [ebp + 8]
jmp 0x1002e25f
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x4c], 0
jne 0x1002e0a3
mov dword [ebp - 0x84], 0xffffffff
mov eax, dword [ebp - 0x84]
jmp 0x1002e25f
mov ecx, dword [ebp - 0x38]
call fcn.1002dcc0
mov ecx, dword [ebp - 0x38]
cmp dword [ecx + 0x38], 0
jne 0x1002e11d
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x4c]
mov dword [ebp - 0x88], eax
mov cl, byte [ebp - 0x42]
mov byte [ebp - 0x39], cl
mov dl, byte [ebp + 8]
mov byte [ebp - 0x39], dl
mov eax, dword [ebp - 0x88]
push eax
movsx ecx, byte [ebp - 0x39]
push ecx
call fcn.10050e39
add esp, 8
cmp eax, 0xffffffff
je 0x1002e0ee
mov dword [ebp - 0x64], 1
jmp 0x1002e0f5
mov dword [ebp - 0x64], 0
movzx edx, byte [ebp - 0x64]
test edx, edx
je 0x1002e105
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
jmp 0x1002e115
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x48], 0xffffffff
mov eax, dword [ebp - 0x48]
jmp 0x1002e25f
mov dword [ebp - 0xac], 0x20
mov dl, byte [ebp + 8]
mov byte [ebp - 0x2a], dl
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x68]
mov eax, dword [edx]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x8c], ecx
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x30]
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 - 0x68]
call dword [ebp - 0x8c]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x1002e186
cmp dword [ebp - 0x4c], 1
je 0x1002e186
cmp dword [ebp - 0x4c], 3
je 0x1002e1ef
jmp 0x1002e24f
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x28]
sub eax, ecx
mov dword [ebp - 0x50], eax
je 0x1002e1c6
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
push 1
lea edx, [ebp - 0x28]
push edx
call fcn.10050a93
add esp, 0x10
cmp dword [ebp - 0x50], eax
je 0x1002e1c6
mov dword [ebp - 0x94], 0xffffffff
mov eax, dword [ebp - 0x94]
jmp 0x1002e25f
mov eax, dword [ebp - 0x38]
mov byte [eax + 0x3d], 1
lea ecx, [ebp - 0x2a]
cmp dword [ebp - 0x30], ecx
je 0x1002e1dd
mov eax, dword [ebp + 8]
jmp 0x1002e25f
mov dword [ebp - 0x98], 0xffffffff
mov eax, dword [ebp - 0x98]
jmp 0x1002e25f
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x4c]
mov dword [ebp - 0x9c], eax
mov cl, byte [ebp - 0x2a]
mov byte [ebp - 0x40], cl
mov edx, dword [ebp - 0x9c]
push edx
movsx eax, byte [ebp - 0x40]
push eax
call fcn.10050e39
add esp, 8
cmp eax, 0xffffffff
je 0x1002e223
mov dword [ebp - 0x6c], 1
jmp 0x1002e22a
mov dword [ebp - 0x6c], 0
movzx ecx, byte [ebp - 0x6c]
test ecx, ecx
je 0x1002e23a
mov edx, dword [ebp + 8]
mov dword [ebp - 0x54], edx
jmp 0x1002e24a
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x54], 0xffffffff
mov eax, dword [ebp - 0x54]
jmp 0x1002e25f
mov dword [ebp - 0xa0], 0xffffffff
mov eax, dword [ebp - 0xa0]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10044f41
mov esp, ebp
pop ebp
ret 4