Function at 0x402c80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x74
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x74], ecx
mov eax, dword [0x455010]
xor eax, ebp
mov dword [ebp - 0x10], eax
pxor xmm0, xmm0
lea eax, [ebp - 0x60]
movq qword [eax], xmm0
mov dword [eax + 8], 0
pcmpeqd xmm0, xmm0
lea esi, [ebp - 0x54]
movdqu xmmword [esi], xmm0
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
xor eax, eax
dec eax
lea ecx, [ebp - 0x44]
mov dword [ecx + 0x30], eax
pcmpeqd xmm0, xmm0
movdqu xmmword [ecx + 0x20], xmm0
movdqu xmmword [ecx + 0x10], xmm0
movdqu xmmword [ecx], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x7c], eax
movzx eax, word [esi + 0xe]
mov dword [ebp - 0x78], eax
movzx eax, word [esi + 0xc]
mov dword [ebp - 0x80], eax
movzx edi, word [esi]
mov ebx, edi
shr ebx, 2
imul ebx, ebx, 0x147b
shr ebx, 0x11
imul ebx, ebx, 0x64
sub edi, ebx
movzx ebx, word [esi + 0xa]
movzx edi, di
movzx eax, word [esi + 8]
movzx ecx, word [esi + 6]
movzx edx, word [esi + 2]
push dword [ebp - 0x7c]
push dword [ebp - 0x78]
push dword [ebp - 0x80]
push ebx
push eax
push ecx
push edx
push edi
push str._02d_02d_02d_02d_02d_02d_03d_d
push 0x1a
lea edi, [ebp - 0x44]
push edi
call fcn.00403110
add esp, 0x2c
lea ecx, [ebp - 0x60]
push edi
call fcn.00410380
mov eax, dword [ebp - 0x70]
xor ecx, ecx
dec ecx
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov esi, ecx
movzx ecx, byte [eax + 0xb]
mov edi, ecx
mov dword [ebp - 0x7c], ecx
test cl, cl
jns 0x402d5f
mov edi, dword [eax + 4]
push str.Opera_installer_
call fcn.00425d53
add esp, 4
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], esi
lea ebx, [edi + eax]
cmp ebx, 0x7ffffff8
jae 0x40305a
cmp ebx, 4
mov dword [ebp - 0x78], eax
jbe 0x402f6a
mov esi, ebx
or esi, 3
inc esi
js 0x403055
lea eax, [esi + esi]
push eax
call fcn.00411ab0
add esp, 4
or esi, 0x80000000
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], ebx
cmp byte [ebp - 0x7c], 0
mov ecx, dword [ebp - 0x70]
jns 0x402dc2
mov ecx, dword [ecx]
lea esi, [eax + edi*2]
cmp ecx, eax
jb 0x402dd1
cmp esi, ecx
ja 0x403046
test edi, edi
je 0x402de2
add edi, edi
push edi
push ecx
push eax
call fcn.004150c0
add esp, 0xc
mov eax, dword [ebp - 0x78]
lea edi, [esi + eax*2]
cmp esi, str.Opera_installer_
ja 0x402dfc
cmp edi, str.Opera_installer_
ja 0x403046
test eax, eax
je 0x402e11
add eax, eax
push eax
push str.Opera_installer_
push esi
call fcn.004150c0
add esp, 0xc
movzx eax, byte [ebp - 0x55]
test al, al
cmovs eax, dword [ebp - 0x5c]
mov word [edi], 0
lea edx, [ebp - 0x60]
cmovs edx, dword [ebp - 0x60]
lea ecx, [ebp - 0x6c]
push eax
push edx
call fcn.004103b0
movsd xmm0, qword [eax]
lea esi, [ebp - 0x44]
movsd qword [esi], xmm0
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
xor edi, edi
mov dword [eax + 8], edi
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov ecx, esi
push 4
push str..dll
call fcn.004103b0
movsd xmm0, qword [eax]
movsd qword [ebp - 0x54], xmm0
mov ecx, dword [eax + 8]
mov dword [ebp - 0x4c], ecx
mov dword [eax + 8], edi
xorps xmm0, xmm0
movsd qword [eax], xmm0
cmp byte [esi + 0xb], 0
jns 0x402e86
push dword [ebp - 0x44]
call fcn.00411ae0
add esp, 4
cmp byte [ebp - 0x61], 0
lea esi, [ebp - 0x54]
jns 0x402e9a
push dword [ebp - 0x6c]
call fcn.00411ae0
add esp, 4
cmp byte [ebp - 0x49], 0
jns 0x402ea3
mov esi, dword [ebp - 0x54]
mov ebx, dword [ebp + 0x10]
sub esp, 0x1c
movaps xmm0, xmmword [0x44efa0]
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov esi, eax
inc esi
cmp esi, 2
jae 0x402f84
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
lea ebx, [ebp - 0x44]
mov dword [ebx], 0xbe
mov dword [ebx + 4], eax
xorps xmm0, xmm0
movsd qword [ebx + 8], xmm0
mov dword [ebx + 0x10], 0
mov edx, ebx
call fcn.004023f0
cmp byte [ebx + 0x13], 0
jns 0x402f17
push dword [ebp - 0x3c]
call fcn.00411ae0
add esp, 4
mov ebx, dword [ebp - 0x74]
xorps xmm0, xmm0
movsd qword [ebx], xmm0
mov dword [ebx + 8], 0
cmp esi, 2
jb 0x402f34
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x49], 0
jns 0x402f45
push dword [ebp - 0x54]
call fcn.00411ae0
add esp, 4
cmp byte [ebp - 0x55], 0
jns 0x402f56
push dword [ebp - 0x60]
call fcn.00411ae0
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412419
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
pxor xmm0, xmm0
lea eax, [ebp - 0x6c]
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov byte [eax + 0xb], bl
jmp 0x402db7
mov dword [ebp - 0x70], esi
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x402fbd
xor esi, esi
mov dword [ebp - 0x6c], 0xffffffff
mov eax, ebx
sub eax, esi
push 0
lea ecx, [ebp - 0x6c]
push ecx
push eax
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403009
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x403009
add esi, eax
cmp esi, ebx
jne 0x402f90
mov esi, esp
xorps xmm0, xmm0
mov ebx, dword [ebp - 0x74]
movsd qword [ebx], xmm0
mov dword [ebx + 8], 0
push eax
sub esp, 8
mov ecx, esp
cmp byte [ebp - 0x49], 0
js 0x402ffc
mov eax, dword [ebp - 0x4c]
mov dword [ecx + 8], eax
movsd xmm0, qword [ebp - 0x54]
movsd qword [ecx], xmm0
mov ecx, ebx
call fcn.00403070
mov esp, esi
mov esi, dword [ebp - 0x70]
jmp 0x402f28
push dword [ebp - 0x50]
push dword [ebp - 0x54]
call fcn.00410220
jmp 0x402feb
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ebx, [ebp - 0x44]
mov dword [ebx], 0xc7
mov dword [ebx + 4], eax
xorps xmm0, xmm0
movsd qword [ebx + 8], xmm0
mov dword [ebx + 0x10], 0
mov ecx, dword [ebp + 0x10]
mov edx, ebx
call fcn.004023f0
cmp byte [ebx + 0x13], 0
mov esi, dword [ebp - 0x70]
jns 0x402f17
jmp 0x402f0c
push str....._third_partylibc_srcinclude__stringchar_traits.h:222:_assertion__std::__is_pointer_in_range___s1____s1____n____s2__failed:_char_traits::copy:_source_and_destination_ranges_overlap_n
push 0x44f243
call fcn.00445fc0
call fcn.00437ad0
lea ecx, [ebp - 0x6c]
call fcn.00437ae0
int3