Function at 0x100a4fa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
mov eax, dword [0x10438fc0]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push esi
mov esi, dword [edi + 0x18]
test esi, esi
je 0x100a50f9
cmp dword [esi + 4], 0xffffffff
je 0x100a50f9
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x14]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x100a4ff8
mov dword [esi + 8], 6
jmp 0x100a5014
xor edx, edx
push edx
push edx
push edx
xor ecx, ecx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x19
mov dword [esi + 8], eax
mov esi, dword [edi + 0x18]
mov dword [esp + 8], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x100a5030
mov dword [esi + 8], 6
jmp 0x100a5052
push 0
lea ecx, [esp + 0xc]
push ecx
push 0x10
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 3
add eax, 0xfffffffd
mov dword [esi + 8], eax
cmp dword [edi + 0x1c], 0
je 0x100a518e
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x14]
cdq
push edx
push eax
push 0
push ecx
call fcn.1015edc0
mov esi, dword [edi + 0x18]
shld edx, eax, 0xa
shl eax, 0xa
add eax, 0x10
adc edx, 0
push edx
push eax
xor ecx, ecx
call fcn.10023560
mov eax, dword [edi + 0x1c]
mov edx, dword [eax]
mov ebx, dword [eax + 4]
mov ecx, dword [eax + 8]
mov esi, dword [edi + 0x18]
mov dword [esp + 0x10], edx
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
mov dword [esp + 8], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x100a50c7
mov dword [esi + 8], 6
jmp 0x100a50e9
push 0
lea ecx, [esp + 0xc]
push ecx
push 0x10
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 3
add eax, 0xfffffffd
mov dword [esi + 8], eax
cmp dword [esp + 8], 0x10
je 0x100a510c
mov eax, dword [edi + 0x18]
mov ecx, dword [eax + 8]
mov dword [edi + 0x30], ecx
xor al, al
pop esi
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10148524
mov esp, ebp
pop ebp
ret
test ebx, ebx
jle 0x100a518e
xor ecx, ecx
mov eax, ebx
mov edx, 4
mul edx
seto cl
push 0x1044dcc0
neg ecx
or ecx, eax
push ecx
call fcn.10148aaf
mov esi, eax
mov eax, dword [esp + 0x18]
add ebx, ebx
add ebx, ebx
push ebx
push eax
push esi
mov dword [esp + 0x20], esi
call sub.MSVCR100.dll_memcpy
add esp, 0x14
mov edx, esi
mov esi, dword [edi + 0x18]
push ebx
lea ecx, [esp + 0xc]
call fcn.10023600
mov ecx, dword [esp + 0xc]
push ecx
cmp dword [esp + 0xc], ebx
je 0x100a5185
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
mov edx, dword [edi + 0x18]
mov eax, dword [edx + 8]
add esp, 4
mov dword [edi + 0x30], eax
xor al, al
pop esi
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10148524
mov esp, ebp
pop ebp
ret
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov ecx, dword [esp + 0x34]
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.10148524
mov esp, ebp
pop ebp
ret