Function at 0x10003e50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007d23c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf0
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc4], 0xffffffff
mov eax, dword [ebp - 0xc4]
cmp eax, dword [ebp + 8]
jne 0x10003e8f
mov dword [ebp - 0x30], 1
jmp 0x10003e96
mov dword [ebp - 0x30], 0
mov cl, byte [ebp - 0x30]
mov byte [ebp - 0x13], cl
movzx edx, byte [ebp - 0x13]
test edx, edx
je 0x10003ef1
mov dword [ebp - 0x60], 0xffffffff
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x60]
je 0x10003ebb
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x38], ecx
jmp 0x10003ede
mov dword [ebp - 0x64], 0xffffffff
cmp dword [ebp - 0x64], 0
jne 0x10003ed1
mov dword [ebp - 0x34], 1
jmp 0x10003ed8
mov dword [ebp - 0x34], 0
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
jmp 0x10004331
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x20]
mov eax, dword [edx]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x10003f6b
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x20]
mov eax, dword [edx]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x30]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x20]
mov eax, dword [ecx]
add eax, dword [edx]
cmp dword [ebp - 0x70], eax
jae 0x10003f6b
mov cl, byte [ebp + 8]
mov byte [ebp - 0x14], cl
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x30]
mov ecx, dword [eax]
sub ecx, 1
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x30]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x20]
mov eax, dword [edx]
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x20]
mov eax, dword [edx]
add eax, 1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x20]
mov dword [edx], eax
mov eax, dword [ebp - 0x74]
mov cl, byte [ebp - 0x14]
mov byte [eax], cl
mov eax, dword [ebp + 8]
jmp 0x10004331
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x4c], 0
jne 0x10003f83
mov dword [ebp - 0x78], 0xffffffff
mov eax, dword [ebp - 0x78]
jmp 0x10004331
mov ecx, dword [ebp - 0x10]
call fcn.10005970
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x38], 0
jne 0x10003ff6
mov cl, byte [ebp + 8]
mov byte [ebp - 0x15], cl
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x4c]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
push ecx
movsx edx, byte [ebp - 0x15]
push edx
call fcn.10017f80
add esp, 8
cmp eax, 0xffffffff
je 0x10003fc2
mov dword [ebp - 0x3c], 1
jmp 0x10003fc9
mov dword [ebp - 0x3c], 0
movzx eax, byte [ebp - 0x3c]
test eax, eax
je 0x10003fd9
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x24], ecx
jmp 0x10003fe9
mov edx, dword [ebp - 0xfc]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x24], 0xffffffff
mov eax, dword [ebp - 0x24]
jmp 0x10004331
mov dword [ebp - 0xe4], 8
mov al, byte [ebp + 8]
mov byte [ebp - 0x12], al
push 0
push 8
lea ecx, [ebp - 0x5c]
call fcn.10002f80
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xe8]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.10004f10
mov dword [ebp - 0x80], eax
mov edx, dword [ebp - 0x80]
mov eax, dword [edx]
mov dword [ebp - 0x94], eax
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x84], ecx
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x88], edx
mov eax, dword [ebp - 0x88]
add eax, 0x10
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ecx]
mov dword [ebp - 0x98], edx
lea eax, [ebp - 0xec]
push eax
lea ecx, [ebp - 0x5c]
call fcn.10004f10
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
mov edx, dword [ecx]
mov dword [ebp - 0x9c], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
mov eax, dword [edx]
lea ecx, [ebp - 0xa4]
push ecx
mov edx, dword [ebp - 0x94]
add edx, dword [ebp - 0x98]
push edx
mov ecx, dword [ebp - 0x9c]
push ecx
lea edx, [ebp - 0xb8]
push edx
lea ecx, [ebp - 0x11]
push ecx
lea edx, [ebp - 0x12]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x40
push ecx
mov ecx, dword [ebp - 0x40]
mov edx, dword [eax + 0x1c]
call edx
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jl 0x100042e6
cmp dword [ebp - 0x28], 1
jle 0x100040f4
cmp dword [ebp - 0x28], 3
je 0x10004260
jmp 0x100042e6
lea eax, [ebp - 0xf0]
push eax
lea ecx, [ebp - 0x5c]
call fcn.10004f10
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp - 0xa0]
mov edx, dword [ecx]
mov dword [ebp - 0xa8], edx
mov eax, dword [ebp - 0xa4]
sub eax, dword [ebp - 0xa8]
mov dword [ebp - 0x20], eax
je 0x1000419b
lea ecx, [ebp - 0xf4]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.10004f10
mov dword [ebp - 0xac], eax
mov edx, dword [ebp - 0xac]
mov eax, dword [edx]
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x4c]
push edx
mov eax, dword [ebp - 0x20]
push eax
push 1
mov ecx, dword [ebp - 0xb0]
push ecx
call fcn.10018ac4
add esp, 0x10
cmp dword [ebp - 0x20], eax
je 0x1000419b
mov dword [ebp - 0xb4], 0xffffffff
mov dword [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x5c]
call fcn.10004de0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xb4]
jmp 0x10004331
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x3d], 1
lea eax, [ebp - 0x12]
cmp dword [ebp - 0xb8], eax
je 0x100041db
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0x5c]
call fcn.10004de0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xbc]
jmp 0x10004331
cmp dword [ebp - 0x20], 0
jbe 0x100041e3
jmp 0x1000425b
lea edx, [ebp - 0x5c]
mov dword [ebp - 0xc0], edx
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xe0], eax
mov ecx, dword [ebp - 0xe0]
add ecx, 0x10
mov dword [ebp - 0xc8], ecx
mov edx, dword [ebp - 0xc8]
mov eax, dword [edx]
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0xcc], 0x20
jae 0x1000422c
push 0
push 8
lea ecx, [ebp - 0x5c]
call fcn.10005350
jmp 0x1000425b
mov dword [ebp - 0xd0], 0xffffffff
mov dword [ebp - 4], 3
push 0
push 1
lea ecx, [ebp - 0x5c]
call fcn.10004de0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xd0]
jmp 0x10004331
jmp 0x10004312
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x4c]
mov dword [ebp - 0xd4], edx
mov al, byte [ebp - 0x12]
mov byte [ebp - 0x1c], al
mov ecx, dword [ebp - 0xd4]
push ecx
movsx edx, byte [ebp - 0x1c]
push edx
call fcn.10017f80
add esp, 8
cmp eax, 0xffffffff
je 0x10004294
mov dword [ebp - 0x44], 1
jmp 0x1000429b
mov dword [ebp - 0x44], 0
movzx eax, byte [ebp - 0x44]
test eax, eax
je 0x100042ab
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2c], ecx
jmp 0x100042bb
mov edx, dword [ebp - 0xf8]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x2c], 0xffffffff
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xd8], eax
mov dword [ebp - 4], 4
push 0
push 1
lea ecx, [ebp - 0x5c]
call fcn.10004de0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xd8]
jmp 0x10004331
mov dword [ebp - 0xdc], 0xffffffff
mov dword [ebp - 4], 5
push 0
push 1
lea ecx, [ebp - 0x5c]
call fcn.10004de0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xdc]
jmp 0x10004331
jmp 0x10004019
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4