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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ea651
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x6780cc]
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 edi, ecx
lea esi, [edi + 0x4c]
push esi
lea ecx, [ebp - 0x230]
call fcn.00408fe0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.005c3615
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4314f5
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00404650
xor eax, eax
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 1
call fcn.0044ae50
mov ecx, dword [ebp - 0x250]
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 1
jb 0x4317d3
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
push ecx
cmovae eax, dword [ebp - 0x260]
push eax
push 1
push 0x645e54
push ecx
push dword [ebp - 0x264]
lea ecx, [ebp - 0x27c]
call fcn.00414630
mov byte [ebp - 4], 2
lea eax, [ebp - 0x27c]
cmp dword [ebp - 0x268], 8
lea ecx, [ebp - 0x230]
push dword [ebp - 0x26c]
cmovae eax, dword [ebp - 0x27c]
push eax
call fcn.00406270
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x268]
cmp ecx, 8
jb 0x431600
mov edx, dword [ebp - 0x27c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4315f6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4317d8
push ecx
push edx
call fcn.005a5f31
add esp, 8
xor eax, eax
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
lea edx, [ebp - 0x248]
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.0044b1c0
lea edx, [ebp - 0x248]
lea ecx, [ebp - 0x230]
call fcn.0044aff0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x4316de
push 0
mov ecx, esi
call fcn.0043b600
add esp, 4
test eax, eax
jne 0x4316de
cmp dword [esi + 0x10], eax
je 0x4316de
cmp dword [ebp - 0x220], eax
je 0x4316de
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
cmp dword [esi + 0x14], 8
jb 0x4316a2
mov esi, dword [esi]
push eax
push esi
call fcn.005cf58f
add esp, 8
test eax, eax
jne 0x4316de
lea ecx, [edi + 0xd4]
lea eax, [ebp - 0x230]
cmp ecx, eax
je 0x4316da
cmp dword [ebp - 0x21c], 8
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.00404650
mov bl, 1
jmp 0x4316e0
xor bl, bl
mov ecx, dword [ebp - 0x234]
cmp ecx, 8
jb 0x431720
mov edx, dword [ebp - 0x248]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x431716
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4317d8
push ecx
push edx
call fcn.005a5f31
add esp, 8
mov ecx, dword [ebp - 0x24c]
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
cmp ecx, 8
jb 0x431779
mov edx, dword [ebp - 0x260]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x43176f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4317d8
push ecx
push edx
call fcn.005a5f31
add esp, 8
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x4317b5
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4317ab
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4317d8
push ecx
push edx
call fcn.005a5f31
add esp, 8
mov al, bl
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.005a5aba
mov esp, ebp
pop ebp
ret
call fcn.00402ac0
call fcn.005bd02a
int3