Function at 0x42936c1d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4297b5ef
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x42a15140]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x42a15140]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
or esi, 0xffffffff
cmp eax, esi
mov ebx, ecx
jne 0x42936c82
xor eax, eax
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.4295e11e
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebx + 0x24]
mov edx, dword [ecx]
test edx, edx
je 0x42936ca6
mov ecx, dword [ebx + 0x34]
mov edi, dword [ecx]
add edi, edx
cmp edx, edi
jae 0x42936ca6
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 0x42936c62
mov ecx, dword [ebx + 0x4c]
test ecx, ecx
jne 0x42936cb1
mov eax, esi
jmp 0x42936c62
cmp dword [ebx + 0x3c], 0
jne 0x42936ccc
movsx eax, al
push ecx
push eax
call fcn.4295f006
pop ecx
cmp eax, esi
mov eax, dword [ebp + 8]
pop ecx
jne 0x42936c62
jmp 0x42936cad
push 0
push 8
pop edi
lea esi, [esp + 0x48]
mov byte [esp + 0x1b], al
call fcn.4290b443
and dword [esp + 0x70], 0
mov eax, dword [esp + 0x58]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x24]
mov ecx, esi
call fcn.42905e79
mov esi, eax
call fcn.429374c7
mov edi, eax
add edi, dword [esp + 0x18]
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x44]
call fcn.42905e79
mov esi, eax
call fcn.429374c7
mov ecx, dword [ebx + 0x3c]
lea esi, [esp + 0x1c]
push esi
push edi
mov dword [esp + 0x20], eax
push dword [esp + 0x20]
mov eax, dword [ecx]
lea esi, [esp + 0x2c]
push esi
lea esi, [esp + 0x28]
push esi
lea esi, [esp + 0x2b]
lea edx, [ebx + 0x44]
push esi
push edx
call dword [eax + 0x14]
jmp 0x42936e17
cmp eax, 1
jg 0x42936e34
lea eax, [esp + 0x34]
lea ecx, [esp + 0x44]
call fcn.42905e79
mov esi, eax
call fcn.429374c7
mov edi, dword [esp + 0x1c]
sub edi, eax
je 0x42936d95
push dword [ebx + 0x4c]
lea eax, [esp + 0x40]
push edi
push 1
lea ecx, [esp + 0x50]
call fcn.42905e79
mov esi, eax
call fcn.429374c7
push eax
call fcn.4295f3ef
add esp, 0x10
cmp edi, eax
jne 0x42936e1f
lea eax, [esp + 0x17]
cmp dword [esp + 0x20], eax
mov byte [ebx + 0x41], 1
jne 0x42936e50
test edi, edi
ja 0x42936dbf
cmp dword [esp + 0x58], 0x20
jae 0x42936e1f
push 0
push 8
lea edi, [esp + 0x4c]
call fcn.4291149d
mov eax, dword [esp + 0x58]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x24]
lea ecx, [esp + 0x44]
call fcn.42905e79
mov esi, eax
call fcn.429374c7
mov edi, eax
add edi, dword [esp + 0x18]
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x44]
call fcn.42905e79
mov esi, eax
call fcn.429374c7
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ecx]
lea esi, [esp + 0x1c]
push esi
push edi
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x2b]
push eax
lea eax, [ebx + 0x44]
push eax
call dword [edx + 0x14]
test eax, eax
jge 0x42936d45
or esi, 0xffffffff
push 0
push 1
lea ecx, [esp + 0x4c]
call fcn.429013cb
jmp 0x42936cad
cmp eax, 3
jne 0x42936e1f
movsx eax, byte [esp + 0x17]
push dword [ebx + 0x4c]
push eax
call fcn.4295f006
or esi, 0xffffffff
cmp eax, esi
pop ecx
pop ecx
je 0x42936e22
mov esi, dword [ebp + 8]
jmp 0x42936e22