Function at 0x1000243b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10029bb5
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x10039454]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x10039454]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
mov ebx, ecx
mov dword [esp + 0x14], esi
cmp eax, 0xffffffff
jne 0x100024aa
xor eax, eax
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.10005dd0
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebx + 0x24]
cmp dword [ecx], esi
je 0x100024ce
mov edx, dword [ecx]
mov ecx, dword [ebx + 0x34]
mov edi, dword [ecx]
add edi, edx
cmp edx, edi
jae 0x100024ce
dec dword [ecx]
mov ebx, dword [ebx + 0x24]
mov ecx, dword [ebx]
lea edx, [ecx + 1]
mov dword [ebx], edx
mov byte [ecx], al
jmp 0x10002487
cmp dword [ebx + 0x54], esi
jne 0x100024d8
or eax, 0xffffffff
jmp 0x10002487
mov eax, ebx
call fcn.100034c1
cmp dword [ebx + 0x44], esi
jne 0x100024fd
movsx eax, byte [ebp + 8]
push dword [ebx + 0x54]
push eax
call fcn.10005de0
pop ecx
pop ecx
cmp eax, 0xffffffff
je 0x100024d3
mov eax, dword [ebp + 8]
jmp 0x10002487
mov al, byte [ebp + 8]
mov byte [esp + 0x12], al
lea eax, [esp + 0x58]
push eax
call fcn.10002e9f
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x90], esi
call fcn.10002fbb
mov edi, eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x5c]
push eax
mov byte [esp + 0x90], 1
call fcn.10002fbb
mov dword [esp + 0x18], eax
mov byte [esp + 0x88], 2
call fcn.10003a68
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x1c], eax
call fcn.10003a68
add esi, dword [esp + 0x1c]
mov ecx, dword [ebx + 0x44]
lea edi, [esp + 0x20]
push edi
push esi
mov dword [esp + 0x20], eax
push dword [esp + 0x20]
mov eax, dword [ecx]
lea esi, [esp + 0x30]
push esi
lea esi, [esp + 0x23]
push esi
lea esi, [esp + 0x26]
lea edx, [ebx + 0x4c]
push esi
push edx
call dword [eax + 0x14]
jmp 0x100026d9
cmp esi, 1
jg 0x1000272d
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.10002fbb
mov edi, eax
mov byte [esp + 0x88], 3
call fcn.10003a68
mov esi, dword [esp + 0x20]
lea edi, [esp + 0x40]
sub esi, eax
mov byte [esp + 0x88], 0
call fcn.10001047
test esi, esi
je 0x1000260e
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.10002fbb
mov byte [esp + 0x88], 4
or dword [esp + 0x14], 1
mov edi, eax
call fcn.10003a68
push dword [ebx + 0x54]
push esi
push 1
push eax
call fcn.1000a1a0
add esp, 0x10
mov byte [esp + 0x13], 1
cmp esi, eax
jne 0x10002613
mov byte [esp + 0x13], 0
and dword [esp + 0x88], 0
test byte [esp + 0x14], 1
je 0x10002630
and dword [esp + 0x14], 0xfffffffe
lea edi, [esp + 0x4c]
call fcn.10001047
cmp byte [esp + 0x13], 0
jne 0x10002705
lea eax, [esp + 0x12]
mov byte [ebx + 0x49], 1
cmp dword [esp + 0x24], eax
jne 0x10002749
test esi, esi
jne 0x10002669
cmp dword [esp + 0x6c], 0x20
jae 0x10002705
push esi
push 8
pop edi
lea esi, [esp + 0x5c]
call fcn.10002eff
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.10002fbb
mov edi, eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x5c]
push eax
mov byte [esp + 0x90], 1
call fcn.10002fbb
mov dword [esp + 0x18], eax
mov byte [esp + 0x88], 2
call fcn.10003a68
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x1c], eax
call fcn.10003a68
add esi, dword [esp + 0x1c]
mov ecx, dword [ebx + 0x44]
mov edx, dword [ecx]
lea edi, [esp + 0x20]
push edi
push esi
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x23]
push eax
lea eax, [esp + 0x26]
push eax
lea eax, [ebx + 0x4c]
push eax
call dword [edx + 0x14]
lea edi, [esp + 0x34]
mov esi, eax
mov byte [esp + 0x88], 1
call fcn.10001047
lea edi, [esp + 0x28]
mov byte [esp + 0x88], 0
call fcn.10001047
test esi, esi
jns 0x10002591
or esi, 0xffffffff
or dword [esp + 0x88], 0xffffffff
push 0
push 1
lea ecx, [esp + 0x60]
call fcn.10002ffd
lea ecx, [esp + 0x58]
call fcn.100030a9
mov eax, esi
jmp 0x10002487
cmp esi, 3
jne 0x10002705
movsx eax, byte [esp + 0x12]
push dword [ebx + 0x54]
push eax
call fcn.10005de0
or esi, 0xffffffff
pop ecx
pop ecx
cmp eax, esi
je 0x10002708
mov esi, dword [ebp + 8]
jmp 0x10002708