Function at 0x403840
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x615e6d
mov eax, dword fs:[0]
push eax
sub esp, 0x3dc
mov eax, dword [0x69cffc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
push 0
mov dword [ebp - 0x3dc], 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 4], 0
call fcn.00403680
comiss xmm0, dword [0x6740b8]
mov eax, dword [ebx]
jbe 0x403969
inc eax
mov dword [ebx], eax
cmp eax, 0xa
jne 0x403947
lea ecx, [ebp - 0x3c0]
call fcn.004047a0
lea eax, [ebp - 0x27a]
push eax
lea eax, [ebx + 0x15e]
push 0x97
push eax
call fcn.005ef42e
add esp, 0xc
lea eax, [ebp - 0x3a8]
push eax
lea eax, [ebx + 0x30]
push 0x97
push eax
call fcn.005ef42e
add esp, 0xc
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebx + 0x28c]
push 0x97
push eax
call fcn.005ef42e
add esp, 0xc
lea eax, [ebp - 0x3d0]
push eax
call fcn.005ef5a2
mov ecx, dword [ebp - 0x3cc]
add esp, 4
test ecx, ecx
jl 0x40392a
mov eax, dword [ebp - 0x3d0]
jg 0x403941
test eax, eax
jne 0x403941
xorps xmm0, xmm0
movlpd qword [ebp - 0x3d0], xmm0
mov ecx, dword [ebp - 0x3cc]
mov eax, dword [ebp - 0x3d0]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0058f0d5
mov esp, ebp
pop ebp
ret
cmp eax, 0xa
jle 0x403b85
lea eax, [ebp - 0x3e8]
push eax
call fcn.005ef5a2
add esp, 4
lea ecx, [ebp - 0x3d8]
call fcn.00404500
push 0x66ecac
lea eax, [ebp - 0x3e4]
push eax
lea ecx, [ebp - 0x3d8]
call fcn.00404520
mov dword [ebp - 0x3dc], 1
lea eax, [ebp - 0x3e4]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x3c4]
push 0x6aa3cc
push eax
call fcn.004046d0
add esp, 0xc
mov byte [ebp - 4], 3
or esi, 0xffffffff
mov edx, dword [ebp - 0x3e4]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4039f0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x3c4]
cmp dword [ecx - 4], 1
jle 0x403a10
push dword [ecx - 0xc]
lea ecx, [ebp - 0x3c4]
call fcn.004030b0
mov ecx, dword [ebp - 0x3c4]
call fcn.004043c0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x3c4]
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x403a31
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x403a47
call fcn.0044a657
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x403ba1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x3dc], 3
mov dword [ebp - 0x3d4], eax
mov eax, dword [ebp - 0x3c4]
push 1
push 0x66ecf8
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x3d4]
push eax
call fcn.00404650
add esp, 0x14
lea eax, [ebp - 0x3d4]
push str.data5.cab
push eax
lea eax, [ebp - 0x3cc]
push eax
call fcn.004042f0
mov byte [ebp - 4], 3
add esp, 0xc
mov edx, dword [ebp - 0x3d4]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x403abb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x3e0]
push eax
call fcn.005ef5a2
mov ecx, dword [ebp - 0x3dc]
add esp, 4
test ecx, ecx
jl 0x403ae0
mov eax, dword [ebp - 0x3e0]
jg 0x403af7
test eax, eax
jne 0x403af7
xorps xmm0, xmm0
movlpd qword [ebp - 0x3d8], xmm0
mov ecx, dword [ebp - 0x3d4]
mov eax, dword [ebp - 0x3d8]
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], ecx
nop dword [eax]
push 0x66ecf0
push dword [ebp - 0x3cc]
call fcn.005f219b
mov edi, eax
add esp, 8
test edi, edi
je 0x403b39
push edi
push 0x500
lea ecx, [ebx + 8]
push 1
push ecx
call fcn.005f2082
push edi
mov esi, eax
call fcn.005f1ddf
add esp, 0x14
test esi, esi
jne 0x403b46
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x403b00
mov edx, dword [ebp - 0x3cc]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x403b66
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x3c4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x403b85
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebx], 0
jmp 0x403947
push 0x80004005
call fcn.00403270
int3