Function at 0x1001f720
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x10087174
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x6c]
push 4
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x64], 0
test eax, eax
je 0x1001f781
mov dword [eax], 0
mov dword [eax], 0xffffffff
jmp 0x1001f783
xor eax, eax
mov dword [esp + 0x64], 0xffffffff
mov dword [esp + 0x14], eax
mov dword [esp + 0x64], 1
lea eax, [esp + 0x14]
push ecx
push 2
push 0
push 0x40000000
push esi
push eax
call fcn.10021c10
mov ebp, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
test al, al
je 0x1001f924
lea eax, [esp + 0x1c]
xorps xmm0, xmm0
push eax
lea ecx, [esp + 0x18]
movlpd qword [esp + 0x20], xmm0
call fcn.1002b000
test al, al
je 0x1001f7ea
cmp dword [esp + 0x20], 0
ja 0x1001f7e3
cmp dword [esp + 0x1c], 0
jbe 0x1001f7ea
mov bl, 1
jmp 0x1001f926
xorps xmm0, xmm0
mov dword [esp + 0x24], 0
movq qword [esp + 0x1c], xmm0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov byte [esp + 0x64], 2
lea ecx, [esp + 0x2c]
call fcn.1001ea30
mov byte [esp + 0x64], 3
lea esi, [edi + 0x24]
mov eax, dword [esi]
lea ecx, [esp + 0x2c]
cmp eax, dword [esi + 4]
jne 0x1001f83b
call fcn.1001ead0
jmp 0x1001f862
push esi
call fcn.10022f70
lea eax, [esi + 0xc]
push eax
lea ecx, [esp + 0x3c]
call fcn.10022f70
lea eax, [esi + 0x18]
push eax
lea ecx, [esp + 0x48]
call fcn.10022f70
mov eax, dword [esi + 0x24]
mov dword [esp + 0x50], eax
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x2c]
call fcn.1001f400
mov ebp, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
sub ebp, edi
mov esi, dword [esp + 0x14]
mov dword [esp + 0x18], 0
test esi, esi
jne 0x1001f88d
xor bl, bl
jmp 0x1001f8d7
test edi, edi
jne 0x1001f895
xor bl, bl
jmp 0x1001f8bf
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x1001f8a0
xor bl, bl
jmp 0x1001f8bf
push 0
lea ecx, [esp + 0x1c]
push ecx
push ebp
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1001f8b8
xor bl, bl
jmp 0x1001f8bf
cmp ebp, dword [esp + 0x18]
sete bl
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x1001f8d7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1001f8d7
mov dword [esi], 0xffffffff
cmp dword [esp + 0x18], ebp
jne 0x1001f8e5
test bl, bl
je 0x1001f8e5
mov bl, 1
jmp 0x1001f8e7
xor bl, bl
mov byte [esp + 0x64], 2
lea ecx, [esp + 0x2c]
call fcn.10021ce0
mov byte [esp + 0x64], 1
mov ebp, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
test edi, edi
je 0x1001f92a
push edi
call ebp
add esp, 4
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
jmp 0x1001f92a
xor bl, bl
mov esi, dword [esp + 0x14]
mov dword [esp + 0x64], 0xffffffff
test esi, esi
je 0x1001f95c
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x1001f94e
test eax, eax
je 0x1001f94e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push esi
call ebp
add esp, 4
mov dword [esp + 0x14], 0
mov al, bl
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.10081b94
add esp, 0x54
ret 4