Function at 0x10031100
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x10108de3
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 fcn.1005d83c
add esp, 4
mov dword [esp + 0x40], eax
mov dword [esp + 0x64], 0
test eax, eax
je 0x10031160
mov dword [eax], 0
mov dword [eax], 0xffffffff
jmp 0x10031162
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.10033860
test al, al
je 0x100312fa
lea eax, [esp + 0x44]
xorps xmm0, xmm0
push eax
lea ecx, [esp + 0x18]
movlpd qword [esp + 0x48], xmm0
call fcn.10030370
test al, al
je 0x100311c3
cmp dword [esp + 0x48], 0
ja 0x100311bc
cmp dword [esp + 0x44], 0
jbe 0x100311c3
mov bl, 1
jmp 0x100312fc
xorps xmm0, xmm0
mov dword [esp + 0x4c], 0
movq qword [esp + 0x44], xmm0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov byte [esp + 0x64], 2
lea ecx, [esp + 0x18]
call fcn.10030600
mov byte [esp + 0x64], 3
lea esi, [edi + 0x24]
mov eax, dword [esi]
lea ecx, [esp + 0x18]
cmp eax, dword [esi + 4]
jne 0x10031214
call fcn.100306a0
jmp 0x1003123b
push esi
call fcn.100349b0
lea eax, [esi + 0xc]
push eax
lea ecx, [esp + 0x28]
call fcn.100349b0
lea eax, [esi + 0x18]
push eax
lea ecx, [esp + 0x34]
call fcn.100349b0
mov eax, dword [esi + 0x24]
mov dword [esp + 0x3c], eax
lea edx, [esp + 0x44]
lea ecx, [esp + 0x18]
call fcn.10030e30
mov ebp, dword [esp + 0x48]
mov edi, dword [esp + 0x44]
sub ebp, edi
mov esi, dword [esp + 0x14]
mov dword [esp + 0x40], 0
test esi, esi
jne 0x10031266
xor bl, bl
jmp 0x100312b0
test edi, edi
jne 0x1003126e
xor bl, bl
jmp 0x10031298
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x10031279
xor bl, bl
jmp 0x10031298
push 0
lea ecx, [esp + 0x44]
push ecx
push ebp
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10031291
xor bl, bl
jmp 0x10031298
cmp ebp, dword [esp + 0x40]
sete bl
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x100312b0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x100312b0
mov dword [esi], 0xffffffff
cmp dword [esp + 0x40], ebp
jne 0x100312be
test bl, bl
je 0x100312be
mov bl, 1
jmp 0x100312c0
xor bl, bl
mov byte [esp + 0x64], 2
lea ecx, [esp + 0x18]
call fcn.10033930
mov byte [esp + 0x64], 1
test edi, edi
je 0x10031300
push edi
call fcn.1005d7c6
add esp, 4
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
jmp 0x10031300
xor bl, bl
mov esi, dword [esp + 0x14]
mov dword [esp + 0x64], 0xffffffff
test esi, esi
je 0x10031335
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x10031324
test eax, eax
je 0x10031324
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push esi
call fcn.1005d7c6
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.1005d006
add esp, 0x54
ret 4