Function at 0x432350
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x26c
mov eax, dword [0x79a200]
xor eax, esp
mov dword [esp + 0x268], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [esp + 0x1c], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp dword [ebx + 8], 0xffffffff
je 0x4323bd
push 0x10d
mov dword [esp + 0x1c], 0x10d
call fcn.00545633
add esp, 4
mov edi, eax
lea eax, [esp + 0x18]
mov dword [esp + 0x20], edi
push 1
push 0x100
push esi
push eax
push edi
call fcn.0053e5f0
add esp, 0x14
test eax, eax
je 0x4323d6
push edi
call fcn.0054562e
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.0068d76f
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [edi]
mov eax, 0x88888889
push dword [esp + 0x24]
mul ecx
push 0x104
shr edx, 5
mov eax, edx
shl eax, 4
sub eax, edx
shl eax, 2
sub ecx, eax
lea eax, [esp + 0x170]
push eax
mov dword [ebx + 0x2a0], ecx
call fcn.006a681f
add esp, 0xc
lea eax, [esp + 0x168]
push 0x104
push eax
call fcn.006a67d1
add esp, 8
lea ecx, [esp + 0x168]
call fcn.0042a890
lea eax, [esp + 0x168]
mov ecx, ebx
push eax
call fcn.004318e0
cmp eax, 0xffffffff
je 0x432451
lea eax, [esp + 0x168]
mov ecx, ebx
push eax
call fcn.00432b20
push dword [esp + 0x18]
mov ecx, ebx
call fcn.00432280
mov dword [esp + 0x24], eax
lea esi, [ebx + 0x2a8]
cmp eax, 0xffffffff
jne 0x432612
push 0x13c
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.00690e10
add esp, 0xc
lea eax, [esp + 0x168]
push eax
lea eax, [esp + 0x2c]
push 0x100
push eax
call fcn.006a681f
mov eax, dword [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x128], eax
mov dword [esp + 0x130], eax
mov eax, dword [ebx + 0x114]
mov dword [esp + 0x134], eax
mov eax, dword [ebx + 0x2a0]
mov dword [esp + 0x138], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x12c], 0x100
cmp eax, dword [esi + 8]
je 0x4324ff
mov ecx, 0x4f
lea esi, [esp + 0x28]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
add dword [ebx + 0x2ac], 0x13c
lea esi, [ebx + 0x2a8]
mov edi, dword [esp + 0x20]
jmp 0x43250c
lea ecx, [esp + 0x28]
push ecx
push eax
mov ecx, esi
call fcn.00433460
mov ecx, dword [esi + 4]
mov eax, 0x67b23a55
sub ecx, dword [esi]
imul ecx
sar edx, 7
mov eax, edx
dec edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebx + 8]
mov dword [esp + 0x24], eax
cmp edx, 0xffffffff
je 0x432568
mov ecx, dword [esi]
imul eax, eax, 0x13c
push 0
mov dword [esp + 0x18], 0
mov eax, dword [eax + ecx + 0x10c]
lea ecx, [esp + 0x18]
push ecx
push eax
push edx
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x432568
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebx + 8]
cmp eax, 0xffffffff
je 0x43258b
push 0
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 0
push ecx
push dword [esp + 0x20]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebx + 8]
mov byte [ebx + 0x118], 1
cmp eax, 0xffffffff
jne 0x4325b3
mov edi, dword [esp + 0x20]
or eax, eax
mov dword [esp + 0x14], 0xffffffff
mov dword [ebx + 0x114], eax
jmp 0x43274d
push 1
lea ecx, [esp + 0x18]
xorps xmm0, xmm0
push ecx
push 0
push eax
movlpd qword [esp + 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x4325fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4325f7
mov edi, dword [esp + 0x20]
or eax, 0xffffffff
or ecx, eax
mov dword [ebx + 0x114], eax
mov dword [esp + 0x14], ecx
jmp 0x43274d
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
mov dword [ebx + 0x114], eax
jmp 0x43274d
mov esi, dword [esi]
lea edi, [esp + 0x28]
imul eax, eax, 0x13c
mov ecx, 0x4f
add esi, eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x168]
push eax
lea eax, [esp + 0x2c]
push 0x100
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.006a681f
mov eax, dword [esp + 0x24]
lea esi, [esp + 0x34]
mov edi, dword [ebx + 0x2a8]
mov ecx, 0x4f
mov edx, dword [esp + 0x28]
add esp, 0xc
mov dword [esp + 0x128], eax
add edi, edx
mov eax, dword [ebx + 0x2a0]
mov dword [esp + 0x12c], 0x100
mov dword [esp + 0x138], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 8]
lea esi, [ebx + 0x2a8]
cmp ecx, 0xffffffff
je 0x4326c0
mov eax, dword [esi]
push 0
mov dword [esp + 0x18], 0
mov eax, dword [eax + edx + 0x10c]
lea edx, [esp + 0x18]
push edx
push eax
push ecx
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x4326c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebx + 8]
mov edi, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x4326e7
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0
push ecx
push dword [esp + 0x20]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebx + 8]
cmp ecx, 0xffffffff
je 0x432723
mov eax, dword [ebx + 0x114]
lea edx, [esp + 0x14]
add eax, dword [esp + 0x1c]
push 0
push edx
push eax
push ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x432723
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx + 8]
cmp edx, 0xffffffff
je 0x43274d
mov ecx, dword [esi]
lea eax, [esp + 0x10]
add ecx, dword [esp + 0x1c]
push 0
push eax
push 0x13c
push ecx
push edx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 4]
mov eax, 0x67b23a55
sub ecx, dword [esi]
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebx + 0x110], eax
mov eax, dword [ebx + 8]
cmp eax, 0xffffffff
je 0x432799
push 0
lea ecx, [esp + 0x18]
xorps xmm0, xmm0
push ecx
push 0
push eax
movlpd qword [esp + 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x432799
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx + 8]
cmp ecx, 0xffffffff
je 0x4327c0
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0x110
lea eax, [ebx + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call fcn.0054562e
mov esi, dword [esp + 0x28]
add esp, 4
mov ecx, ebx
push esi
call fcn.00431d50
push esi
mov ecx, ebx
call fcn.00430e50
mov ecx, dword [esp + 0x274]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0068d76f
mov esp, ebp
pop ebp
ret 0xc