Function at 0x10037cf0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1010bfc4
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 0x10037d51
mov dword [eax], 0
mov dword [eax], 0xffffffff
jmp 0x10037d53
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.1003a3a0
mov ebp, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
test al, al
je 0x10037ef4
lea eax, [esp + 0x1c]
xorps xmm0, xmm0
push eax
lea ecx, [esp + 0x18]
movlpd qword [esp + 0x20], xmm0
call fcn.1005c9a0
test al, al
je 0x10037dba
cmp dword [esp + 0x20], 0
ja 0x10037db3
cmp dword [esp + 0x1c], 0
jbe 0x10037dba
mov bl, 1
jmp 0x10037ef6
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.10037080
mov byte [esp + 0x64], 3
lea esi, [edi + 0x24]
mov eax, dword [esi]
lea ecx, [esp + 0x2c]
cmp eax, dword [esi + 4]
jne 0x10037e0b
call fcn.10037120
jmp 0x10037e32
push esi
call fcn.1003cb00
lea eax, [esi + 0xc]
push eax
lea ecx, [esp + 0x3c]
call fcn.1003cb00
lea eax, [esi + 0x18]
push eax
lea ecx, [esp + 0x48]
call fcn.1003cb00
mov eax, dword [esi + 0x24]
mov dword [esp + 0x50], eax
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x2c]
call fcn.10037a20
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 0x10037e5d
xor bl, bl
jmp 0x10037ea7
test edi, edi
jne 0x10037e65
xor bl, bl
jmp 0x10037e8f
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x10037e70
xor bl, bl
jmp 0x10037e8f
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 0x10037e88
xor bl, bl
jmp 0x10037e8f
cmp ebp, dword [esp + 0x18]
sete bl
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x10037ea7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10037ea7
mov dword [esi], 0xffffffff
cmp dword [esp + 0x18], ebp
jne 0x10037eb5
test bl, bl
je 0x10037eb5
mov bl, 1
jmp 0x10037eb7
xor bl, bl
mov byte [esp + 0x64], 2
lea ecx, [esp + 0x2c]
call fcn.1003a490
mov byte [esp + 0x64], 1
mov ebp, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
test edi, edi
je 0x10037efa
push edi
call ebp
add esp, 4
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
jmp 0x10037efa
xor bl, bl
mov esi, dword [esp + 0x14]
mov dword [esp + 0x64], 0xffffffff
test esi, esi
je 0x10037f2c
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x10037f1e
test eax, eax
je 0x10037f1e
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.10103694
add esp, 0x54
ret 4