Function at 0x1003b650
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005a855
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x10072f40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
cmp eax, dword [edi + 0xc]
jg 0x1003b8d8
cmp byte [edi + 0x10], 0
je 0x1003b8d8
mov eax, dword [edi + 8]
cmp dword [eax - 0xc], 0
je 0x1003b6eb
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x1003b6eb
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0x989680
jb 0x1003b6eb
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1003b6eb
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 4], eax
call fcn.100063f0
mov ecx, eax
test ecx, ecx
je 0x1003b8f5
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 1
cmp byte [edi + 0x11], 1
jne 0x1003b759
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x12]
push eax
movzx eax, word [ebp - 0x14]
push eax
movzx eax, word [ebp - 0x16]
push eax
movzx eax, word [ebp - 0x18]
push eax
movzx eax, word [ebp - 0x1a]
push eax
movzx eax, word [ebp - 0x1e]
push eax
movzx eax, word [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push str.__04d_02d_02d__02d:_02d:_02d._03d_
push eax
call fcn.10004100
add esp, 0x24
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x100618c0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.ProcID
lea eax, [ebp - 0x2c]
push str.__s_u:_s_u_
push eax
call fcn.10019820
add esp, 0x18
call fcn.100063f0
mov ecx, eax
test ecx, ecx
je 0x1003b8f5
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
push dword [ebp - 0x28]
push esi
call fcn.10004120
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.1003b2f0
add esp, 0xc
mov byte [ebp - 4], 4
or esi, 0xffffffff
mov edx, dword [eax]
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov dword [ebp - 0x30], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x28], eax
lea eax, [edx - 0x10]
cmp eax, ecx
je 0x1003b832
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x38], eax
jl 0x1003b826
mov eax, dword [edx - 0x10]
cmp eax, dword [ecx]
jne 0x1003b826
push dword [ebp - 0x28]
call fcn.10019d20
mov edx, dword [ebp - 0x38]
add esp, 4
mov dword [ebp - 0x28], eax
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1003b81e
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x28]
add eax, 0x10
mov dword [ebp - 0x24], eax
jmp 0x1003b832
push dword [edx - 0xc]
lea ecx, [ebp - 0x24]
push edx
call fcn.100050f0
mov byte [ebp - 4], 3
mov eax, esi
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003b850
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.1003b4c0
cmp dword [edi + 4], 0xffffffff
mov esi, dword [ebp - 0x24]
je 0x1003b89b
mov dword [ebp - 0x30], 0
mov eax, dword [esi - 0xc]
add eax, eax
cmp dword [esi - 4], 1
mov dword [ebp - 0x34], eax
jle 0x1003b88a
push dword [esi - 0xc]
lea ecx, [ebp - 0x24]
call fcn.10004050
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x34]
push 0
lea ecx, [ebp - 0x30]
push ecx
push eax
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [ebp - 4], 1
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003b8b9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x1003b8d8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005078e
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.10003510
int3