Function at 0x4357f0
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b791b
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x5603e8]
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 eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
xor edx, edx
push 0x206
mov dword [ebp - 0x42c], eax
push edx
lea eax, [ebp - 0x41e]
push eax
mov dword [ebp - 0x428], ecx
mov word [ebp - 0x420], dx
call sub.MSVCR100.dll_memset
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
push edx
mov word [ebp - 0x218], cx
call sub.MSVCR100.dll_memset
push 0x104
lea eax, [ebp - 0x218]
push esi
push eax
call dword [sym.imp.MSVCR100.dll_wcsncpy]
add esp, 0x24
cmp word [ebx], 0x5c
je 0x4358a5
lea edi, [ebp - 0x218]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x435891
mov ecx, dword [0x4c7780]
mov dword [edi], ecx
mov eax, ebx
mov edx, ebx
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4358b0
lea edi, [ebp - 0x218]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4358c6
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [ebp - 0x218]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43595c
xor eax, eax
mov dword [ebp - 0x424], eax
push 1
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x218]
push ecx
call dword [ebp - 0x42c]
test eax, eax
js 0x435943
mov edi, dword [ebp - 0x428]
mov edx, dword [edi]
mov esi, dword [ebp - 0x424]
mov eax, dword [edx + 0xc]
push edi
mov ebx, esi
call eax
mov ecx, dword [esi]
mov edx, dword [ecx + 0xc]
push eax
push edi
push esi
call edx
push eax
push ebx
call fcn.004338e0
add esp, 0x10
mov eax, dword [ebp - 0x424]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x43595c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
mov edi, edi
movzx ecx, word [ebp + eax - 0x218]
mov word [ebp + eax - 0x420], cx
add eax, 2
test cx, cx
jne 0x435960
lea eax, [ebp - 0x420]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x435981
mov ecx, dword [0x4d1ab8]
mov edx, dword [0x4d1abc]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [eax], ecx
mov dword [eax + 4], edx
lea eax, [ebp - 0x420]
push eax
call ebx
inc eax
cmp eax, 0x3fffffff
jg 0x4359eb
lea esi, [eax + eax]
mov eax, esi
call fcn.004b1530
mov edi, esp
test edi, edi
je 0x4359eb
push 0
push 0
push esi
push edi
push 0xffffffffffffffff
lea ecx, [ebp - 0x420]
push ecx
push 0
push 3
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
neg esi
sbb esi, esi
and esi, edi
jmp 0x4359ed
xor esi, esi
lea edx, [ebp - 0x218]
push edx
call ebx
inc eax
cmp eax, 0x3fffffff
jg 0x435a32
lea ebx, [eax + eax]
mov eax, ebx
call fcn.004b1530
mov edi, esp
test edi, edi
je 0x435a32
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
lea eax, [ebp - 0x218]
push eax
push 0
push 3
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, edi
jmp 0x435a34
xor eax, eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea esp, [ebp - 0x43c]
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.004b12f6
mov esp, ebp
pop ebp
ret