Function at 0x456630
Capabilities:
Check if file exists
Copy file
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5629a7
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x5b03a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x244], ebx
lea eax, [ebx + 0x40]
mov dword [ebx + 0x28], 2
push 0
push dword [eax]
mov dword [ebp - 0x248], eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, dword fs:[0x2c]
mov dword [ebp - 0x254], str.update.exe
mov ecx, dword [eax]
mov eax, dword [0x5c7df0]
cmp eax, dword [ecx + 4]
jle 0x4566ce
push 0x5c7df0
call fcn.004dec96
add esp, 4
cmp dword [0x5c7df0], 0xffffffff
jne 0x4566ce
push 0x5c7df0
mov dword [0x5c7df4], 0
call fcn.004dec4c
add esp, 4
xorps xmm0, xmm0
mov byte [ebp - 0x231], 0
movlpd qword [ebp - 0x228], xmm0
lea eax, [ebp - 0x228]
mov dword [ebp - 4], 0
push eax
call fcn.0045e7a5
mov dword [ebp - 4], 1
lea eax, [ebp - 0x228]
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x231]
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x230]
push eax
push 0x4582b0
push 0x5c7df4
call fcn.0045e970
add esp, 0x10
test eax, eax
je 0x456aca
lea eax, [ebp - 0x228]
mov dword [ebp - 4], 2
push eax
call fcn.0045e7df
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebx + 0x34]
mov dword [ebp - 0x250], 0x5c6410
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
xor esi, esi
mov dword [ebp - 0x24c], str.curlnet.dll
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x23c], ecx
nop dword [eax + eax]
mov edx, ecx
mov dword [ebp - 0x21c], 0
push 0x595678
lea ecx, [ebp - 0x21c]
call fcn.0043a770
add esp, 4
mov dword [ebp - 4], 5
mov edi, dword [ebp + esi*4 - 0x254]
test edi, edi
jne 0x4567b5
xor ecx, ecx
jmp 0x4567cf
mov ecx, edi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4567c0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x21c]
call fcn.00426060
mov edx, dword [ebp - 0x248]
lea ecx, [ebp - 0x220]
push edi
mov dword [ebp - 0x220], 0
call fcn.0043a770
add esp, 4
mov byte [ebp - 4], 6
push dword [ebp - 0x21c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x456824
push 0
push dword [ebp - 0x220]
push dword [ebp - 0x21c]
call ebx
jmp 0x4569ed
mov edx, dword [ebp - 0x23c]
lea ecx, [ebp - 0x22c]
push edi
call fcn.0043a770
add esp, 4
mov byte [ebp - 4], 7
mov ecx, dword [eax]
mov esi, dword [ebp - 0x21c]
add esi, 0xfffffff0
lea edx, [ecx - 0x10]
cmp edx, esi
je 0x4568af
mov eax, dword [esi + 0xc]
lea ebx, [esi + 0xc]
shr eax, 0x1f
test al, al
jne 0x45689a
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x45689a
push edx
call fcn.004220b0
add esp, 4
mov dword [ebp - 0x240], eax
mov byte [ebp - 4], 8
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x45688f
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x240]
add eax, 0x10
mov dword [ebp - 0x21c], eax
jmp 0x4568a9
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.0041be40
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, dword [ebp - 0x22c]
add edx, 0xfffffff0
mov byte [ebp - 4], 9
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4568d1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
push dword [ebp - 0x21c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4569d7
mov edx, dword [ebp - 0x23c]
lea ecx, [ebp - 0x224]
push str.Utils
call fcn.0043a770
add esp, 4
mov byte [ebp - 4], 0xa
mov ecx, dword [eax]
mov esi, dword [ebp - 0x21c]
add esi, 0xfffffff0
lea edx, [ecx - 0x10]
cmp edx, esi
je 0x456972
mov eax, dword [esi + 0xc]
lea ebx, [esi + 0xc]
shr eax, 0x1f
test al, al
jne 0x456963
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x456963
push edx
call fcn.004220b0
add esp, 4
mov dword [ebp - 0x240], eax
mov byte [ebp - 4], 0xb
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x456958
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x240]
add eax, 0x10
mov dword [ebp - 0x21c], eax
jmp 0x456972
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.0041be40
mov edx, dword [ebp - 0x224]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xc
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x456994
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
test edi, edi
jne 0x4569a0
xor ecx, ecx
jmp 0x4569b4
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4569a5
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x21c]
call fcn.00426060
push dword [ebp - 0x21c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4569e7
push 0
push dword [ebp - 0x220]
push dword [ebp - 0x21c]
call ebx
mov esi, dword [ebp - 0x238]
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xd
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x456a0f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xe
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x456a34
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x23c]
inc esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x238], esi
cmp esi, 3
jb 0x456780
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00527d20
mov esi, dword [ebp - 0x244]
lea eax, [ebp - 0x218]
add esp, 0xc
push dword [esi + 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.moyu_update.ini
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
lea eax, [ebp - 0x218]
push eax
push dword [esi + 0x38]
call ebx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004deaec
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 3
push eax
call fcn.0045e800
add esp, 4
mov byte [ebp - 4], 1
test al, al
jne 0x456aea
call fcn.0045e988
sub esp, 8
lea eax, [ebp - 0x228]
mov ecx, esp
push eax
call fcn.0041b160
call fcn.0041b220
int3