Function at 0x432300
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x4d100c]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x10], esi
mov ecx, dword [edi + 0x10]
lea eax, [ecx - 1]
cmp eax, 0xfe
ja 0x432513
cmp dword [ebx + 0x10], 0x28
jne 0x432513
cmp byte [esi + 2], 0
mov byte [esp + 0x17], cl
je 0x432377
cmp byte [esi + 0x3c], 0
je 0x432377
push 2
lea eax, [esp + 0x24]
mov byte [esi + 0x3c], 1
push eax
xorps xmm0, xmm0
movlpd qword [esp + 0x28], xmm0
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov byte [esi + 0x3c], 0
xor edx, edx
lea eax, [esi + 0x28]
cmp byte [esi + 7], dl
lea ecx, [esi + 0x40]
cmove eax, edx
push eax
push ecx
push 1
lea eax, [esp + 0x23]
push eax
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [edi + 0x14], 0x10
mov eax, dword [edi + 0x10]
jb 0x4323a2
mov edi, dword [edi]
push eax
push edi
mov ecx, esi
call fcn.00450b70
cmp byte [esi + 2], 0
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x20], eax
je 0x4323e7
cmp byte [esi + 0x3c], 0
je 0x4323e7
push 2
lea eax, [esp + 0x1c]
mov byte [esi + 0x3c], 1
push eax
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov byte [esi + 0x3c], 0
xor ecx, ecx
lea eax, [esi + 0x28]
cmp byte [esi + 7], cl
cmove eax, ecx
push eax
lea eax, [esi + 0x40]
push eax
push 4
lea eax, [esp + 0x2c]
push eax
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [esi + 2], 0
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x20], eax
je 0x432443
cmp byte [esi + 0x3c], 0
je 0x432443
push 2
lea eax, [esp + 0x1c]
mov byte [esi + 0x3c], 1
push eax
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov byte [esi + 0x3c], 0
xor ecx, ecx
lea eax, [esi + 0x28]
cmp byte [esi + 7], cl
cmove eax, ecx
push eax
lea eax, [esi + 0x40]
push eax
push 4
lea eax, [esp + 0x2c]
push eax
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebx + 0x14], 0x10
mov eax, dword [ebx + 0x10]
jb 0x43246e
mov ebx, dword [ebx]
shr eax, 1
mov ecx, 0x14
cmp eax, ecx
cmova eax, ecx
xor edi, edi
test eax, eax
je 0x4324be
mov esi, eax
mov al, byte [ebx + edi*2]
lea ecx, [eax - 0x30]
cmp cl, 9
ja 0x432491
sub al, 0x30
jmp 0x432495
and al, 0xf
add al, 9
mov dl, byte [ebx + edi*2 + 1]
lea ecx, [edx - 0x30]
cmp cl, 9
ja 0x4324a6
sub dl, 0x30
jmp 0x4324ac
and dl, 0xf
add dl, 9
shl al, 4
or al, dl
mov byte [esp + edi + 0x28], al
inc edi
cmp edi, esi
jb 0x432482
mov esi, dword [esp + 0x10]
cmp byte [esi + 2], 0
je 0x4324f3
cmp byte [esi + 0x3c], 0
je 0x4324f3
push 2
lea eax, [esp + 0x1c]
mov byte [esi + 0x3c], 1
push eax
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov byte [esi + 0x3c], 0
xor ecx, ecx
lea eax, [esi + 0x28]
cmp byte [esi + 7], cl
cmove eax, ecx
push eax
lea eax, [esi + 0x40]
push eax
push 0x14
lea eax, [esp + 0x34]
push eax
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00450db2
mov esp, ebp
pop ebp
ret 8