Function at 0x405b80
Capabilities:
Copy file
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb4b0
mov eax, dword fs:[0]
push eax
sub esp, 0xa04
mov eax, dword [0x4fe37c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa04], ecx
mov byte [ebp - 0x831], 1
mov ecx, dword [ebp + 8]
call fcn.0049acc0
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x290]
call eax
movzx ecx, al
test ecx, ecx
je 0x405c4a
lea ecx, [ebp - 0x8c0]
call fcn.00407090
mov dword [ebp - 4], 0
push 0x4e76d8
lea ecx, [ebp - 0x9c4]
call fcn.00406f50
mov byte [ebp - 4], 1
lea edx, [ebp - 0x9c4]
push edx
lea ecx, [ebp - 0x8c0]
call fcn.00407120
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x9c4]
call fcn.00406fd0
push 0
lea eax, [ebp - 0x8c0]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x128]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c0]
call fcn.00407100
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0xf4]
call eax
mov dword [ebp - 0x88c], eax
lea ecx, [ebp - 0x830]
call fcn.00406f20
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x850]
call fcn.00406f20
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x888]
call fcn.00406f20
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x86c]
call fcn.00406f20
mov byte [ebp - 4], 5
push 0
push 1
push 1
push 1
push 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x144]
call eax
push 0
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x148]
call eax
lea ecx, [ebp - 0x830]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x250]
call edx
lea eax, [ebp - 0x850]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x25c]
call eax
lea ecx, [ebp - 0x86c]
push ecx
lea edx, [ebp - 0x888]
push edx
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x254]
call eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0xcc]
call eax
movzx ecx, al
test ecx, ecx
je 0x405d56
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x204]
call edx
movzx eax, al
test eax, eax
je 0x405d56
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0xa04]
call fcn.00404c80
push 0x1a
lea edx, [ebp - 0x9e0]
push edx
call fcn.0049e4f0
add esp, 8
mov dword [ebp - 0xa08], eax
mov eax, dword [ebp - 0xa08]
mov dword [ebp - 0xa0c], eax
mov byte [ebp - 4], 6
push str.SogouGameDownloadgamedata
mov ecx, dword [ebp - 0xa0c]
push ecx
lea edx, [ebp - 0x8a8]
push edx
call fcn.00409480
add esp, 0xc
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x9e0]
call fcn.00406fd0
push 0
lea ecx, [ebp - 0x8a8]
call fcn.00407070
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x9fc]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x170]
call eax
mov dword [ebp - 0xa10], eax
push 0
mov ecx, dword [ebp - 0xa10]
call fcn.00407070
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0x9fc]
call fcn.00406fd0
xor ecx, ecx
mov word [ebp - 0x814], cx
push 0x7fe
push 0
lea edx, [ebp - 0x812]
push edx
call fcn.00445020
add esp, 0xc
lea eax, [ebp - 0x814]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jbe 0x405ee5
lea ecx, [ebp - 0x8fc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0xa4]
call edx
mov byte [ebp - 4], 9
push 0x4e786c
lea ecx, [ebp - 0x8fc]
call fcn.00407050
lea ecx, [ebp - 0x8fc]
call fcn.00407070
push eax
push 0x400
lea eax, [ebp - 0x814]
push eax
call fcn.00445141
add esp, 0xc
lea ecx, [ebp - 0x8e0]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x170]
call edx
mov byte [ebp - 4], 0xa
push str._setupgame.ico
lea ecx, [ebp - 0x8e0]
call fcn.00407050
push 0
lea ecx, [ebp - 0x8e0]
call fcn.00407070
push eax
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x8c4], eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x8e0]
call fcn.00406fd0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x8fc]
call fcn.00406fd0
lea ecx, [ebp - 0x814]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jbe 0x405fb4
lea edx, [ebp - 0x938]
push edx
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0xa4]
call eax
mov byte [ebp - 4], 0xb
push str._game.ico
lea ecx, [ebp - 0x938]
call fcn.00407050
lea ecx, [ebp - 0x938]
call fcn.00407070
push eax
push 0x400
lea ecx, [ebp - 0x814]
push ecx
call fcn.00445141
add esp, 0xc
lea edx, [ebp - 0x91c]
push edx
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x170]
call eax
mov byte [ebp - 4], 0xc
push str.game.ico
lea ecx, [ebp - 0x91c]
call fcn.00407050
push 0
lea ecx, [ebp - 0x91c]
call fcn.00407070
push eax
lea ecx, [ebp - 0x814]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x900], eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x91c]
call fcn.00406fd0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x938]
call fcn.00406fd0
mov byte [ebp - 0x832], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0xf8]
call edx
cmp eax, 2
jne 0x406055
lea ecx, [ebp - 0x954]
call fcn.00406f20
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x970]
call fcn.00406f20
mov byte [ebp - 4], 0xe
push 1
lea eax, [ebp - 0x970]
push eax
lea ecx, [ebp - 0x954]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0xa04]
call fcn.00405400
push 0
lea eax, [ebp - 0x888]
push eax
lea ecx, [ebp - 0x970]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x1bc]
call edx
mov byte [ebp - 0x832], al
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x970]
call fcn.00406fd0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x954]
call fcn.00406fd0
movzx eax, byte [ebp - 0x832]
test eax, eax
je 0x406129
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x98]
call eax
movzx ecx, byte [ebp - 0x831]
test ecx, ecx
je 0x4060a0
movzx ebx, byte [ebp - 0x831]
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0xa04]
call fcn.00405980
movzx eax, al
and ebx, eax
mov byte [ebp - 0x831], bl
movzx ecx, byte [ebp - 0x831]
test ecx, ecx
je 0x4060cc
movzx ebx, byte [ebp - 0x831]
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0xa04]
call fcn.00405a20
movzx eax, al
and ebx, eax
mov byte [ebp - 0x831], bl
movzx ecx, byte [ebp - 0x831]
test ecx, ecx
je 0x4060f8
movzx ebx, byte [ebp - 0x831]
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0xa04]
call fcn.004058e0
movzx eax, al
and ebx, eax
mov byte [ebp - 0x831], bl
movzx ecx, byte [ebp - 0x831]
test ecx, ecx
je 0x406124
movzx ebx, byte [ebp - 0x831]
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0xa04]
call fcn.00405ac0
movzx eax, al
and ebx, eax
mov byte [ebp - 0x831], bl
jmp 0x4062a2
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x290]
call eax
movzx ecx, al
test ecx, ecx
je 0x4062a2
movzx edx, byte [ebp - 0x831]
test edx, edx
je 0x406178
movzx ebx, byte [ebp - 0x831]
mov eax, dword [ebp - 0xa04]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x9c]
call eax
movzx ecx, al
and ebx, ecx
mov byte [ebp - 0x831], bl
movzx edx, byte [ebp - 0x831]
test edx, edx
je 0x4061a6
movzx ebx, byte [ebp - 0x831]
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xa04]
call fcn.00405710
movzx ecx, al
and ebx, ecx
mov byte [ebp - 0x831], bl
movzx edx, byte [ebp - 0x831]
test edx, edx
je 0x4061d2
movzx ebx, byte [ebp - 0x831]
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xa04]
call fcn.00405810
movzx ecx, al
and ebx, ecx
mov byte [ebp - 0x831], bl
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x90]
call edx
movzx eax, byte [ebp - 0x831]
test eax, eax
je 0x40620e
movzx ebx, byte [ebp - 0x831]
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0xa04]
call fcn.00405980
movzx edx, al
and ebx, edx
mov byte [ebp - 0x831], bl
movzx eax, byte [ebp - 0x831]
test eax, eax
je 0x40623a
movzx ebx, byte [ebp - 0x831]
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0xa04]
call fcn.00405a20
movzx edx, al
and ebx, edx
mov byte [ebp - 0x831], bl
movzx eax, byte [ebp - 0x831]
test eax, eax
je 0x406266
movzx ebx, byte [ebp - 0x831]
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0xa04]
call fcn.004058e0
movzx edx, al
and ebx, edx
mov byte [ebp - 0x831], bl
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x94]
call eax
movzx ecx, byte [ebp - 0x831]
test ecx, ecx
je 0x4062a2
movzx ebx, byte [ebp - 0x831]
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0xa04]
call fcn.00405ac0
movzx eax, al
and ebx, eax
mov byte [ebp - 0x831], bl
movzx ecx, byte [ebp - 0x831]
test ecx, ecx
je 0x40638e
lea edx, [ebp - 0x850]
push edx
lea ecx, [ebp - 0x98c]
call fcn.00406f90
mov byte [ebp - 4], 0xf
push str.Temp_
lea ecx, [ebp - 0x98c]
call fcn.00407050
push 0x4e76d8
lea ecx, [ebp - 0x98c]
call fcn.00407050
lea eax, [ebp - 0x888]
push eax
lea ecx, [ebp - 0x9a8]
call fcn.00406f90
mov byte [ebp - 4], 0x10
push 0x4e7678
lea ecx, [ebp - 0x9a8]
call fcn.00407050
push 0x4e76d8
lea ecx, [ebp - 0x9a8]
call fcn.00407050
lea ecx, [ebp - 0x98c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x1a0]
call edx
movzx eax, al
test eax, eax
jne 0x40635b
push 0
lea ecx, [ebp - 0x98c]
push ecx
lea edx, [ebp - 0x9a8]
push edx
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x1ac]
call eax
push 0x96000
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x1b4]
call eax
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x9a8]
call fcn.00406fd0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x98c]
call fcn.00406fd0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x2d0]
call eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0xcc]
call eax
movzx ecx, al
test ecx, ecx
je 0x4063db
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x204]
call edx
movzx eax, al
test eax, eax
jne 0x4063db
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0xa04]
call fcn.00404eb0
mov dl, byte [ebp - 0x831]
mov byte [ebp - 0x9fd], dl
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x8a8]
call fcn.00406fd0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x86c]
call fcn.00406fd0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x888]
call fcn.00406fd0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x850]
call fcn.00406fd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x830]
call fcn.00406fd0
mov al, byte [ebp - 0x9fd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004443e3
mov esp, ebp
pop ebp
ret 4