Function at 0x10011700
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004d922
mov eax, dword fs:[0]
push eax
mov eax, 0x40064
call fcn.1004c0f0
mov eax, dword [0x1005d014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x4001c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40018], eax
test eax, eax
je 0x10011a47
mov esi, dword [ebp + 0x14]
cmp esi, 1
jl 0x10011a47
push ecx
lea ecx, [ebp - 0x40044]
call fcn.1000b260
push 0
lea ecx, [ebp - 0x40030]
mov dword [ebp - 4], 0
push ecx
mov ecx, eax
call fcn.1000b8c0
cmp dword [ebp - 0x40038], 0
mov dword [ebp - 0x40034], 0
jl 0x100117a6
mov eax, dword [ebp - 0x40040]
test eax, eax
je 0x100117a6
push eax
call fcn.1003217f
add esp, 4
cmp dword [ebp - 0x40020], 0
mov ebx, 0x1005409c
mov ecx, ebx
mov dword [ebp - 0x40040], 0
cmovne ecx, dword [ebp - 0x4002c]
mov eax, ebx
test ecx, ecx
mov dword [ebp - 0x4003c], 0
mov word [ebp - 0x40038], 0
cmovne eax, ecx
mov byte [ebp - 0x40036], 0
mov dword [ebp - 0x40044], eax
mov dword [ebp - 0x40034], 4
push 0x10056800
push ecx
lea ecx, [ebp - 0x40044]
mov byte [ebp - 4], 3
call fcn.10001770
add esp, 4
push eax
call fcn.10031fc4
add esp, 8
mov dword [ebp - 0x40014], eax
test eax, eax
je 0x1001185a
push eax
push esi
push 1
push dword [ebp - 0x40018]
call fcn.10038174
push dword [ebp - 0x40014]
mov esi, eax
call fcn.10031dc2
add esp, 0x14
cmp esi, dword [ebp + 0x14]
je 0x10011894
cmp dword [ebp - 0x40020], 0
cmovne ebx, dword [ebp - 0x4002c]
mov ecx, ebx
call fcn.10004b70
xor bl, bl
lea ecx, [ebp - 0x40044]
call fcn.10001820
cmp dword [ebp - 0x40024], 0
mov dword [ebp - 0x40020], 0
jl 0x1001188d
mov eax, dword [ebp - 0x4002c]
test eax, eax
je 0x1001188d
push eax
call fcn.1003217f
add esp, 4
mov al, bl
jmp 0x10011a49
push dword [ebp - 0x4001c]
lea ecx, [ebp - 0x4006c]
call fcn.1000b260
push 0
lea ecx, [ebp - 0x40058]
mov byte [ebp - 4], 4
push ecx
mov ecx, eax
call fcn.1000b8c0
lea ecx, [ebp - 0x4006c]
call fcn.10004d40
cmp dword [ebp - 0x40048], 0
mov eax, ebx
push ecx
cmovne eax, dword [ebp - 0x40054]
lea ecx, [ebp - 0x4006c]
push eax
call fcn.100018a0
push 0x10056800
push ecx
mov byte [ebp - 4], 7
call fcn.10001770
add esp, 4
push eax
call fcn.10031fc4
add esp, 8
mov dword [ebp - 0x40014], eax
test eax, eax
jne 0x10011918
cmp dword [ebp - 0x40020], eax
cmovne ebx, dword [ebp - 0x4002c]
jmp 0x10011a23
lea ecx, [ebp - 0x40044]
call fcn.10001770
sub esp, 8
mov ecx, eax
call fcn.10022e50
add esp, 8
mov dword [ebp - 0x40018], eax
cmp dword [edi + 0x50], 4
mov dword [edi + 0xc0], 0
jne 0x100119e7
nop word [eax + eax]
cmp dword [eax + 0x13c4], 4
je 0x100119b5
push ecx
lea ecx, [ebp - 0x40010]
mov edx, eax
push ecx
lea ecx, [ebp - 0x4001c]
call fcn.10022b90
mov esi, eax
mov eax, dword [ebp - 0x4001c]
test eax, eax
je 0x1001197f
cmp eax, 4
jne 0x100119e7
test esi, esi
js 0x100119e7
jle 0x100119b5
push dword [ebp - 0x40014]
lea eax, [ebp - 0x40010]
push esi
push 1
push eax
call fcn.10038174
add esp, 0x10
cmp eax, esi
jne 0x100119e7
add dword [edi + 0xc0], eax
cmp dword [edi + 0x50], 4
jne 0x100119e7
mov eax, dword [ebp - 0x40018]
jmp 0x10011950
push dword [ebp - 0x40014]
call fcn.10031dc2
mov ecx, dword [ebp - 0x40018]
add esp, 4
call fcn.10023030
cmp dword [ebp - 0x40020], 0
cmovne ebx, dword [ebp - 0x4002c]
mov ecx, ebx
call fcn.10004b70
mov bl, 1
jmp 0x10011a2c
push dword [ebp - 0x40014]
call fcn.10031dc2
mov ecx, dword [ebp - 0x40018]
add esp, 4
call fcn.10023030
cmp dword [ebp - 0x40020], 0
mov ecx, ebx
cmovne ecx, dword [ebp - 0x4002c]
call fcn.10004b70
cmp dword [ebp - 0x40048], 0
cmovne ebx, dword [ebp - 0x40054]
mov ecx, ebx
call fcn.10004b70
xor bl, bl
lea ecx, [ebp - 0x4006c]
call fcn.10001820
lea ecx, [ebp - 0x40058]
call fcn.10004d40
jmp 0x1001185c
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002bc85
mov esp, ebp
pop ebp
ret 0x10