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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47339d
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1164
call fcn.0043ddf0
mov eax, dword [0x492740]
xor eax, ebp
mov dword [ebp - 0x74], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004010f0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x460e24
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00405400
jmp 0x461838
call fcn.004038a0
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
push 0x47f7a8
push 0x4973d4
lea eax, [ebp - 0x40]
push eax
call fcn.00401530
add esp, 0xc
mov dword [ebp - 0x1100], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.004010f0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x460ff4
push 0
push 0
push 0
push 0
push 1
push 0
lea ecx, [ebp - 0x54]
call fcn.0042a681
mov dword [ebp - 0x1104], eax
mov byte [ebp - 4], 3
push 0
push 0
push 1
push 1
push 0x47f7d0
lea ecx, [ebp - 0x54]
call fcn.0042afa4
mov dword [ebp - 0x1108], eax
mov ecx, dword [ebp - 0x1108]
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x5c], 0
cmp dword [ebp - 0x58], 0
je 0x460f92
lea ecx, [ebp - 0x70]
call fcn.00427000
mov dword [ebp - 0x110c], eax
mov byte [ebp - 4], 4
push 0x47f820
push 0x4973d4
lea edx, [ebp - 0x10cc]
push edx
call fcn.00401530
add esp, 0xc
mov dword [ebp - 0x1110], eax
mov eax, dword [ebp - 0x1110]
mov dword [ebp - 0x1114], eax
mov byte [ebp - 4], 5
push 0
push 0x9001
mov ecx, dword [ebp - 0x1114]
call fcn.004010f0
push eax
lea ecx, [ebp - 0x70]
call fcn.00427444
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10cc]
call fcn.00405400
push 0x800
lea ecx, [ebp - 0x878]
push ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x58]
mov edx, dword [eax + 0x34]
call edx
mov dword [ebp - 0x1118], eax
mov eax, dword [ebp - 0x1118]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
jle 0x460f71
mov ecx, dword [ebp - 0x60]
push ecx
lea edx, [ebp - 0x878]
push edx
lea ecx, [ebp - 0x70]
call fcn.00426d4e
mov eax, dword [ebp - 0x5c]
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x5c], eax
jmp 0x460f25
lea ecx, [ebp - 0x70]
call fcn.00426f9e
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x58]
mov eax, dword [edx + 0x4c]
call eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.0042710d
cmp dword [ebp - 0x5c], 0x800
jl 0x460fe0
push 0x47f850
push 0x4973d4
lea ecx, [ebp - 0x10d0]
push ecx
call fcn.00401530
add esp, 0xc
mov dword [ebp - 0x111c], eax
lea ecx, [ebp - 0x40]
call fcn.004010f0
push eax
mov ecx, dword [ebp - 0x111c]
call fcn.004010f0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x10d0]
call fcn.00405400
lea ecx, [ebp - 0x54]
call fcn.0042ac38
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x54]
call fcn.0042ad0d
push 0
push 0
push 0
push 0
push 1
push 0
lea ecx, [ebp - 0x34]
call fcn.0042a681
mov dword [ebp - 0x1120], eax
mov byte [ebp - 4], 6
push 0
push 0
push 1
push 1
push 0x47f880
lea ecx, [ebp - 0x34]
call fcn.0042afa4
mov dword [ebp - 0x1124], eax
mov edx, dword [ebp - 0x1124]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 0x38], 0
je 0x461802
mov byte [ebp - 0x1098], 0
push 0x7ff
push 0
lea eax, [ebp - 0x1097]
push eax
call fcn.0043acc0
add esp, 0xc
push 0x800
lea ecx, [ebp - 0x1098]
push ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x38]
mov edx, dword [eax + 0x34]
call edx
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x38]
mov eax, dword [edx + 0x4c]
call eax
lea ecx, [ebp - 0x1098]
push ecx
lea edx, [ebp - 0x884]
push edx
call fcn.0045bce0
add esp, 8
mov dword [ebp - 0x1128], eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x898]
call fcn.004038b0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x88c]
call fcn.004038b0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x87c]
call fcn.004038b0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x894]
call fcn.004038b0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x890]
call fcn.004038b0
mov byte [ebp - 4], 0xc
push 0x47f8d0
lea ecx, [ebp - 0x894]
call fcn.00402390
push 0
push 0x47f8d8
lea ecx, [ebp - 0x884]
call fcn.00405240
cmp eax, 0xffffffff
je 0x4613e1
push 0
push 0x47f8f8
lea ecx, [ebp - 0x884]
call fcn.00405240
add eax, 6
push eax
push 0
lea ecx, [ebp - 0x884]
call fcn.00404fa0
push 0
push 0x47f908
lea ecx, [ebp - 0x884]
call fcn.00405240
push eax
lea eax, [ebp - 0x10d4]
push eax
lea ecx, [ebp - 0x884]
call fcn.00403480
mov dword [ebp - 0x112c], eax
mov ecx, dword [ebp - 0x112c]
mov dword [ebp - 0x1130], ecx
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x1130]
push edx
lea ecx, [ebp - 0x898]
call fcn.00402520
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x10d4]
call fcn.00405400
push 0
push 0x47f90c
lea ecx, [ebp - 0x884]
call fcn.00405240
add eax, 7
push eax
push 0
lea ecx, [ebp - 0x884]
call fcn.00404fa0
push 0
push 0x47f91c
lea ecx, [ebp - 0x884]
call fcn.00405240
push eax
lea eax, [ebp - 0x10d8]
push eax
lea ecx, [ebp - 0x884]
call fcn.00403480
mov dword [ebp - 0x1134], eax
mov ecx, dword [ebp - 0x1134]
mov dword [ebp - 0x1138], ecx
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x1138]
push edx
lea ecx, [ebp - 0x88c]
call fcn.00402520
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x10d8]
call fcn.00405400
push 0
push 0x47f920
lea ecx, [ebp - 0x884]
call fcn.00405240
add eax, 0xb
push eax
push 0
lea ecx, [ebp - 0x884]
call fcn.00404fa0
push 0
push 0x47f938
lea ecx, [ebp - 0x884]
call fcn.00405240
push eax
lea eax, [ebp - 0x10dc]
push eax
lea ecx, [ebp - 0x884]
call fcn.00403480
mov dword [ebp - 0x113c], eax
mov ecx, dword [ebp - 0x113c]
mov dword [ebp - 0x1140], ecx
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x1140]
push edx
lea ecx, [ebp - 0x87c]
call fcn.00402520
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x10dc]
call fcn.00405400
push 0
push 0x47f93c
lea ecx, [ebp - 0x884]
call fcn.00405240
add eax, 0xd
push eax
push 0
lea ecx, [ebp - 0x884]
call fcn.00404fa0
push 0
push 0x47f958
lea ecx, [ebp - 0x884]
call fcn.00405240
sub eax, 1
push eax
lea eax, [ebp - 0x10e0]
push eax
lea ecx, [ebp - 0x884]
call fcn.00403480
mov dword [ebp - 0x1144], eax
mov ecx, dword [ebp - 0x1144]
mov dword [ebp - 0x1148], ecx
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x1148]
push edx
lea ecx, [ebp - 0x894]
call fcn.00402520
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x10e0]
call fcn.00405400
push 0x47f95c
push 0x47f960
lea ecx, [ebp - 0x894]
call fcn.00405060
lea ecx, [ebp - 0x894]
call fcn.00405310
push 0
push 0x47f964
lea ecx, [ebp - 0x884]
call fcn.00405240
add eax, 0xa
push eax
push 0
lea ecx, [ebp - 0x884]
call fcn.00404fa0
push 0
push 0x47f97c
lea ecx, [ebp - 0x884]
call fcn.00405240
sub eax, 1
push eax
lea eax, [ebp - 0x10e4]
push eax
lea ecx, [ebp - 0x884]
call fcn.00403480
mov dword [ebp - 0x114c], eax
mov ecx, dword [ebp - 0x114c]
mov dword [ebp - 0x1150], ecx
mov byte [ebp - 4], 0x11
mov edx, dword [ebp - 0x1150]
push edx
lea ecx, [ebp - 0x890]
call fcn.00402520
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x10e4]
call fcn.00405400
push 0x47f980
push 0x47f984
lea ecx, [ebp - 0x890]
call fcn.00405060
lea ecx, [ebp - 0x890]
call fcn.00405310
lea ecx, [ebp - 0x888]
call fcn.004038b0
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x890]
push eax
mov ecx, dword [ebp - 0x894]
push ecx
mov edx, dword [ebp - 0x87c]
push edx
mov eax, dword [ebp - 0x88c]
push eax
mov ecx, dword [ebp - 0x898]
push ecx
push 0x47f988
lea edx, [ebp - 0x888]
push edx
call fcn.004037a0
add esp, 0x1c
push ecx
mov ecx, esp
mov dword [ebp - 0x10e8], esp
lea eax, [ebp - 0x888]
push eax
call fcn.00401e00
mov dword [ebp - 0x1154], eax
mov ecx, 0x497300
call fcn.0046acf0
lea ecx, [ebp - 0x894]
call fcn.004010f0
push eax
call fcn.0043cc41
add esp, 4
test eax, eax
jle 0x4614bd
lea ecx, [ebp - 0x894]
call fcn.004010f0
push eax
call fcn.0043cc41
add esp, 4
cmp eax, 0x91
je 0x4614bd
lea ecx, [ebp + 8]
call fcn.004010f0
push eax
push 0x47fa24
push 0x47fa28
push 0x47fa34
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp + 8]
call fcn.004010f0
push eax
push 0x47fa44
push 0x47fa48
push 0x47fa60
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x4614f9
lea ecx, [ebp + 8]
call fcn.004010f0
push eax
push 0x47fa70
push 0x47fa74
push 0x47fa80
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp + 8]
call fcn.004010f0
push eax
push 0x47fa90
push 0x47fa94
push 0x47faac
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp - 0x10a8]
call fcn.00403f60
mov dword [ebp - 0x1158], eax
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x40]
call fcn.004010f0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4615e2
mov dword [ebp - 0x10ac], 0
push 0x47fabc
lea ecx, [ebp - 0x40]
call fcn.004010f0
push eax
lea ecx, [ebp - 0x10ac]
push ecx
call fcn.0043d54d
add esp, 0xc
cmp dword [ebp - 0x10ac], 0
je 0x4615e2
mov edx, dword [ebp - 0x10ac]
push edx
lea ecx, [ebp - 0x10c0]
call fcn.0042b744
mov dword [ebp - 0x115c], eax
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x10c4]
call fcn.004038b0
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0x10c4]
push eax
lea ecx, [ebp - 0x10c0]
call fcn.0042bcaa
mov dword [ebp - 0x1160], eax
cmp dword [ebp - 0x1160], 0
je 0x4615b9
lea ecx, [ebp - 0x10c4]
push ecx
lea ecx, [ebp - 0x10a8]
call fcn.004068e0
jmp 0x461584
lea ecx, [ebp - 0x10c0]
call fcn.0042bb3b
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x10c4]
call fcn.00405400
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x10c0]
call fcn.0042bb77
lea ecx, [ebp - 0x880]
call fcn.004038b0
mov byte [ebp - 4], 0x16
mov edx, dword [ebp - 0x890]
push edx
push 0x47fad4
lea eax, [ebp - 0x880]
push eax
call fcn.004037a0
add esp, 0xc
mov dword [ebp - 0x10c8], 0
jmp 0x461627
mov ecx, dword [ebp - 0x10c8]
add ecx, 1
mov dword [ebp - 0x10c8], ecx
lea ecx, [ebp - 0x10a8]
call fcn.00405e90
cmp dword [ebp - 0x10c8], eax
jge 0x46177b
push 0
lea ecx, [ebp - 0x880]
call fcn.004010f0
push eax
mov edx, dword [ebp - 0x10c8]
push edx
lea ecx, [ebp - 0x10a8]
call fcn.00405ed0
mov ecx, eax
call fcn.00405240
cmp eax, 0xffffffff
je 0x461776
push 0
push 0x47faec
mov eax, dword [ebp - 0x10c8]
push eax
lea ecx, [ebp - 0x10a8]
call fcn.00405ed0
mov ecx, eax
call fcn.00405240
add eax, 0xb
push eax
push 0
mov ecx, dword [ebp - 0x10c8]
push ecx
lea ecx, [ebp - 0x10a8]
call fcn.00405ed0
mov ecx, eax
call fcn.00404fa0
push 1
lea edx, [ebp - 0x10f0]
push edx
mov eax, dword [ebp - 0x10c8]
push eax
lea ecx, [ebp - 0x10a8]
call fcn.00405ed0
mov ecx, eax
call fcn.00403480
mov dword [ebp - 0x1164], eax
push 0x47fb04
mov ecx, dword [ebp - 0x1164]
push ecx
call fcn.00403950
add esp, 8
mov byte [ebp - 0x10e9], al
lea ecx, [ebp - 0x10f0]
call fcn.00405400
movzx edx, byte [ebp - 0x10e9]
test edx, edx
je 0x461776
push ecx
mov ecx, esp
mov dword [ebp - 0x10f4], esp
push 0x47fb08
call fcn.00401f90
mov dword [ebp - 0x1168], eax
mov eax, dword [ebp - 0x1168]
mov dword [ebp - 0x116c], eax
mov byte [ebp - 4], 0x17
push ecx
mov ecx, esp
mov dword [ebp - 0x10f8], esp
push 0x47fb0c
call fcn.00401f90
mov dword [ebp - 0x1170], eax
mov byte [ebp - 4], 0x16
call fcn.0045b3d0
add esp, 8
push ecx
mov ecx, esp
mov dword [ebp - 0x10fc], esp
push 0x47fb20
call fcn.00401f90
mov dword [ebp - 0x1174], eax
mov ecx, 0x497300
call fcn.0046acf0
jmp 0x461618
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x880]
call fcn.00405400
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x10a8]
call fcn.004068c0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x888]
call fcn.00405400
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x890]
call fcn.00405400
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x894]
call fcn.00405400
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x87c]
call fcn.00405400
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x88c]
call fcn.00405400
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x898]
call fcn.00405400
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x884]
call fcn.00405400
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.0042ad0d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00405400
jmp 0x461822
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00405400
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x74]
xor ecx, ebp
call fcn.0043aca7
mov esp, ebp
pop ebp
ret