Function at 0x100c42f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x5c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x100d2870
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x18]
mov esi, dword fs:[0]
mov dword [ebp - 0x18], esi
lea esi, [ebp - 0x50]
mov dword fs:[0], ecx
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 7
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x32], 0x10100
mov dword [ebp - 0x36], 0x1000000
lea ecx, [ebp - 0x28]
push esi
push eax
call fcn.100cfda0
add esp, 8
cmp dword [ebp - 0x28], 1
jne 0x100c4383
movsd xmm0, qword [ebp - 0x24]
movsd qword [edi], xmm0
jmp 0x100c450a
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp - 0x24]
test edi, edi
mov dword [ebp - 0x2c], eax
je 0x100c43d7
mov ebx, dword [ebp + 0x14]
nop word cs:[eax + eax]
nop dword [eax]
mov dword [ebp - 0x50], 0
push 0
push esi
push edi
push ebx
push dword [ebp - 0x2c]
call sub.KERNEL32.dll_WriteFile
test eax, eax
je 0x100c43e2
mov eax, dword [ebp - 0x50]
test eax, eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], 0
je 0x100c4409
cmp edi, eax
jb 0x100c451d
add ebx, eax
sub edi, eax
jne 0x100c43a0
mov edi, dword [ebp + 8]
mov byte [edi], 3
jmp 0x100c4502
call sub.KERNEL32.dll_GetLastError
mov edi, dword [ebp + 8]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x5c], 1
mov dword [edi + 4], eax
mov dword [edi], 0
jmp 0x100c4502
push 1
push 0x1c
call fcn.100176f0
add esp, 8
test eax, eax
je 0x100c453e
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0x1c
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], 2
lea ecx, [ebp - 0x50]
lea edx, [ebp - 0x28]
push 1
push 0x1c
push 0
call fcn.100c1ed0
add esp, 0xc
cmp dword [ebp - 0x50], 1
mov edi, dword [ebp + 8]
je 0x100c454c
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
movsd xmm0, qword [0x101845dc]
lea edx, [ecx + 0x1c]
mov dword [ebp - 0x20], edx
movsd qword [eax + ecx + 0x10], xmm0
movsd xmm0, qword [0x101845d4]
mov edx, dword [0x101845e4]
movsd qword [eax + ecx + 8], xmm0
movsd xmm0, qword [str.failed_to_write_whole_bufferp]
mov dword [eax + ecx + 0x18], edx
movsd qword [eax + ecx], xmm0
mov eax, dword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x28]
movsd qword [ebp - 0x68], xmm0
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x48], eax
movsd qword [ebp - 0x50], xmm0
push 4
push 0xc
call fcn.100176f0
add esp, 8
test eax, eax
je 0x100c4530
mov esi, eax
mov eax, dword [ebp - 0x48]
movsd xmm0, qword [ebp - 0x50]
mov dword [esi + 8], eax
movsd qword [esi], xmm0
push 4
push 0xc
call fcn.100176f0
add esp, 8
test eax, eax
je 0x100c4530
movzx ecx, word [ebp - 0x50]
mov dl, byte [ebp - 0x4e]
mov dword [eax], esi
mov dword [eax + 4], 0x101843c8
mov byte [eax + 8], 0xe
mov dword [edi], 2
mov dword [edi + 4], eax
mov word [eax + 9], cx
mov byte [eax + 0xb], dl
push dword [ebp - 0x2c]
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edi
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 1
push edi
push eax
call fcn.100e21d0
add esp, 8
ud2
push 4
push 0xc
call fcn.100da490
add esp, 8
ud2
push 1
push 0x1c
call fcn.100da490
add esp, 8
ud2
cmp dword [ebp - 0x48], 0
jne 0x100c4559
call fcn.100da7a0
jmp 0x100c452e
push 0x10184050
push 0x28
push str.internal_error:_entered_unreachable_code_::core::macros::panic_macros_
call fcn.100df260
add esp, 0xc
jmp 0x100c452e