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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438e91
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x44f014]
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.00403380
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.00421a66
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 0x4077e5
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.0040a120
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.004105e0
mov ecx, dword [ebp - 0x250]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 1
jb 0x407aaf
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
push ecx
cmovae eax, dword [ebp - 0x260]
push eax
push 1
push 0x449cb8
push ecx
push dword [ebp - 0x264]
lea ecx, [ebp - 0x27c]
call fcn.0040c950
lea eax, [ebp - 0x27c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x230]
call fcn.0040a280
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x268]
cmp ecx, 8
jb 0x4078dc
mov edx, dword [ebp - 0x27c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4078d2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407ab4
push ecx
push edx
call fcn.00417151
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.00410950
lea edx, [ebp - 0x248]
lea ecx, [ebp - 0x230]
call fcn.00410780
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 0x4079ba
push 0
mov ecx, esi
call fcn.00413540
add esp, 4
test eax, eax
jne 0x4079ba
cmp dword [esi + 0x10], eax
je 0x4079ba
cmp dword [ebp - 0x220], eax
je 0x4079ba
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
cmp dword [esi + 0x14], 8
jb 0x40797e
mov esi, dword [esi]
push eax
push esi
call fcn.00422348
add esp, 8
test eax, eax
jne 0x4079ba
lea ecx, [edi + 0xd4]
lea eax, [ebp - 0x230]
cmp ecx, eax
je 0x4079b6
cmp dword [ebp - 0x21c], 8
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.0040a120
mov bl, 1
jmp 0x4079bc
xor bl, bl
mov ecx, dword [ebp - 0x234]
cmp ecx, 8
jb 0x4079fc
mov edx, dword [ebp - 0x248]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4079f2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407ab4
push ecx
push edx
call fcn.00417151
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 0x407a55
mov edx, dword [ebp - 0x260]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x407a4b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407ab4
push ecx
push edx
call fcn.00417151
add esp, 8
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x407a91
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x407a87
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407ab4
push ecx
push edx
call fcn.00417151
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.00416ec0
mov esp, ebp
pop ebp
ret
call fcn.004012c0
call fcn.0041c06f
int3