Function at 0x43edf0
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [0x520d38]
push esi
mov esi, dword [esp + 0x14]
imul esi, dword [esp + 0x18]
push edi
xor edi, edi
cmp dword [esp + 0x20], 1
mov edx, esi
jne 0x43ee40
mov eax, dword [0x520ccc]
mov ecx, dword [0x520cfc]
mov dword [0x520d28], eax
mov eax, dword [0x520d3c]
mov dword [0x520d58], edi
mov dword [0x520d5c], edi
mov dword [0x520cf8], ecx
mov dword [0x520d30], ebp
mov dword [0x520d34], eax
mov eax, dword [0x520d48]
mov ecx, dword [0x520d4c]
mov ebx, eax
or ebx, ecx
jne 0x43ee57
mov eax, esi
xor ecx, ecx
jmp 0x43ee5f
sub eax, ebp
sbb ecx, dword [0x520d3c]
xor ebx, ebx
cmp ebx, ecx
jb 0x43ee86
ja 0x43ee6b
cmp esi, eax
jbe 0x43ee86
mov ebx, dword [esp + 0x20]
cmp ebx, 3
je 0x43ee82
cmp ebx, 1
je 0x43ee82
cmp ebx, 2
je 0x43ee82
mov edx, eax
jmp 0x43ee8a
xor edx, edx
jmp 0x43ee8a
mov ebx, dword [esp + 0x20]
cmp ebx, 2
jne 0x43eed3
cmp dword [0x4e9f60], 0xffffffff
jne 0x43eeb4
mov ecx, dword [0x520cfc]
mov eax, dword [0x520d3c]
mov dword [0x4e9f60], ecx
mov dword [0x520d00], ebp
mov dword [0x520d04], eax
mov eax, 1
add dword [0x520d08], eax
mov ecx, edi
adc dword [0x520d0c], ecx
add dword [0x520d10], eax
adc dword [0x520d14], ecx
test edx, edx
jbe 0x43ef21
mov ecx, dword [0x520ccc]
mov eax, dword [esp + 0x14]
push ecx
push edx
mov edx, dword [esp + 0x20]
push edx
push eax
call fcn.004c3690
mov ebp, dword [0x520d38]
mov edi, eax
sub esi, edi
xor eax, eax
add esp, 0x10
add ebp, edi
adc dword [0x520d3c], eax
mov dword [esp + 0x18], esi
mov dword [0x520d38], ebp
test ebx, ebx
jne 0x43ef25
add dword [0x520d58], edi
adc dword [0x520d5c], eax
jmp 0x43ef25
mov dword [esp + 0x18], esi
test esi, esi
jbe 0x43f1ea
mov eax, dword [0x520d40]
test eax, eax
je 0x43f1d1
add dword [0x520d50], ebp
mov ecx, dword [0x520d3c]
adc dword [0x520d54], ecx
cmp eax, 1
jne 0x43ef6b
mov edx, dword [0x520ccc]
push edx
call fcn.004c3dc2
add esp, 4
test eax, eax
je 0x43ef6b
push 0xe
call fcn.004b7c00
cmp dword [0x520d40], 2
jne 0x43efa4
mov eax, dword [0x520ccc]
push eax
call fcn.004c3dc2
add esp, 4
test eax, eax
je 0x43efa4
cmp dword [0x520d3c], 0
ja 0x43efa4
jb 0x43ef9d
cmp dword [0x520d38], 0x10000
jae 0x43efa4
push 0xe
call fcn.004b7c00
cmp dword [0x520d40], 1
jne 0x43efc9
mov ecx, dword [0x520cf8]
cmp ecx, dword [0x520cfc]
jne 0x43efc9
mov edx, dword [0x520cc8]
mov dword [0x520d1c], edx
jmp 0x43f01a
mov eax, dword [0x520cfc]
mov ecx, dword [0x520cdc]
mov ebx, dword [0x520cc8]
mov esi, dword [0x520ccc]
push eax
push ecx
call fcn.0043eca0
push esi
mov ebp, eax
call fcn.004c34b2
add esp, 4
push ebp
push ebx
call fcn.004b7e80
mov edx, dword [0x520cc8]
xor esi, esi
push edx
mov dword [0x520ccc], esi
call fcn.004c1404
mov dword [0x520cc8], esi
mov esi, dword [esp + 0x1c]
add esp, 4
mov ecx, dword [0x520cdc]
xor eax, eax
mov dword [0x520d08], eax
mov dword [0x520d0c], eax
mov dword [0x520d38], eax
mov dword [0x520d3c], eax
mov eax, dword [0x520cfc]
push eax
push ecx
call fcn.0043eca0
push 0
mov ebx, eax
push ebx
mov ebp, 1
push ebp
call fcn.0040a330
push ebx
call fcn.004c1404
mov eax, dword [0x520d40]
add dword [0x520cfc], ebp
add esp, 4
cmp eax, 2
jne 0x43f082
mov edx, dword [0x520cfc]
push edx
call fcn.0043de50
test eax, eax
jne 0x43f082
push 9
call fcn.004b7c00
mov eax, dword [0x51f844]
push eax
call fcn.0043ddd0
mov dword [0x520cc8], eax
test eax, eax
jne 0x43f0a2
push 4
call fcn.004b7c00
mov eax, dword [0x520cc8]
push 0x4d94b0
push eax
call fcn.004c3cf8
add esp, 8
mov dword [0x520ccc], eax
test eax, eax
jne 0x43f0d7
mov ecx, dword [0x520cc8]
push ecx
push eax
mov ecx, 0x51f7e8
call fcn.00433b30
push 0xa
call fcn.004b7c00
mov eax, dword [0x520ccc]
mov edx, dword [esp + 0x14]
push eax
push esi
lea eax, [edi + edx]
push ebp
push eax
call fcn.004c3690
mov edx, dword [esp + 0x30]
xor ecx, ecx
add esp, 0x10
add edi, eax
add dword [0x520d38], eax
adc dword [0x520d3c], ecx
cmp edx, 3
je 0x43f118
cmp edx, ebp
je 0x43f118
cmp edx, 2
je 0x43f118
add dword [0x520d58], eax
adc dword [0x520d5c], ecx
cmp esi, eax
jbe 0x43f135
mov eax, dword [0x520d40]
cmp eax, 2
je 0x43f06b
push 0xe
call fcn.004b7c00
mov edx, dword [esp + 0x20]
cmp edx, ebp
je 0x43f147
cmp edx, 3
je 0x43f147
cmp edx, 2
jne 0x43f1ea
cmp dword [0x520d40], ebp
jne 0x43f19a
mov ebx, dword [0x520d28]
test ebx, ebx
je 0x43f19a
mov eax, dword [0x520cf8]
cmp eax, dword [0x520cfc]
je 0x43f19a
mov ecx, dword [0x520cdc]
mov esi, dword [0x520d1c]
push eax
push ecx
call fcn.0043eca0
push ebx
mov ebp, eax
call fcn.004c34b2
add esp, 4
push ebp
push esi
call fcn.004b7e80
mov edx, dword [0x520d1c]
push edx
call fcn.004c1404
add esp, 4
mov eax, dword [0x520cc8]
mov ecx, dword [0x520ccc]
mov edx, dword [0x520cfc]
mov dword [0x520d1c], eax
xor eax, eax
mov dword [0x520d30], eax
mov dword [0x520d34], eax
mov eax, edi
pop edi
pop esi
pop ebp
mov dword [0x520d28], ecx
mov dword [0x520cf8], edx
pop ebx
ret 0x10
mov eax, dword [0x520ccc]
push eax
call fcn.004c3dc2
add esp, 4
test eax, eax
je 0x43f1ea
push 0xe
call fcn.004b7c00
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0x10