Function at 0x458460
Capabilities:
Check if file exists
Delete file
Enumerate files on windows
Move file
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x532f0f
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x577760]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push esi
push edi
mov eax, dword [0x577760]
xor eax, esp
push eax
lea eax, [esp + 0x260]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x268], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov byte [esp + 0x268], 1
mov dword [esp + 0x44], eax
mov byte [esp + 0x34], al
mov eax, ecx
mov dword [esp + 0x48], 0xf
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4584e1
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x3c]
call fcn.0041c5b0
lea ecx, [esp + 0x34]
lea edi, [esp + 0x14]
mov byte [esp + 0x268], 2
call fcn.004380f0
mov byte [esp + 0x268], 1
cmp dword [esp + 0x48], 0x10
jb 0x458526
mov eax, dword [esp + 0x34]
push eax
call fcn.004bf135
add esp, 4
mov eax, ebx
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], 0
mov byte [esp + 0x34], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x458540
sub eax, edx
push eax
push ebx
lea ecx, [esp + 0x3c]
call fcn.0041c5b0
lea ecx, [esp + 0x34]
lea edi, [esp + 0x24]
mov byte [esp + 0x268], 3
call fcn.004380f0
mov byte [esp + 0x268], 1
cmp dword [esp + 0x48], 0x10
jb 0x458585
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004bf135
add esp, 4
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x28]
cmp esi, dword [esp + 0x18]
je 0x458b6a
mov edx, dword [esp + 0x14]
push 0xffffffffffffffff
xor edi, edi
push edi
mov esi, 0xf
push edx
lea ecx, [esp + 0x78]
mov dword [esp + 0x8c], esi
mov dword [esp + 0x88], edi
mov byte [esp + 0x78], 0
call fcn.0041c710
mov byte [esp + 0x268], 4
mov eax, dword [esp + 0x24]
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], edi
mov byte [esp + 0x40], 0
call fcn.0041c710
push 0x561700
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0xe4]
push edx
mov byte [esp + 0x274], 5
call fcn.004264f0
mov esi, 0x10
add esp, 0xc
cmp dword [eax + 0x14], esi
jb 0x458616
mov eax, dword [eax]
lea ecx, [esp + 0x114]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x10], eax
cmp dword [esp + 0xf0], esi
jb 0x458642
mov edx, dword [esp + 0xdc]
push edx
call fcn.004bf135
add esp, 4
cmp dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xf0], 0xf
mov dword [esp + 0xec], edi
mov byte [esp + 0xdc], 0
je 0x458a49
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x114]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x458a3e
mov ebx, 0xf
jmp 0x458690
mov ecx, 0x55c408
lea eax, [esp + 0x140]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4586c0
test dl, dl
je 0x4586bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4586c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4586a0
xor eax, eax
jmp 0x4586c5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x458a1f
mov ecx, 0x561264
lea eax, [esp + 0x140]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x458700
test dl, dl
je 0x4586fc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x458700
add eax, 2
add ecx, 2
test dl, dl
jne 0x4586e0
xor eax, eax
jmp 0x458705
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x458a1f
mov al, byte [esp + 0x114]
test al, 2
jne 0x458a1f
test al, 0x10
je 0x458913
push 0x561194
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x100]
push eax
call fcn.004264f0
push eax
lea edx, [esp + 0x150]
lea eax, [esp + 0xb4]
mov byte [esp + 0x278], 6
call fcn.0042c930
push eax
mov edx, 0x561194
lea eax, [esp + 0x9c]
mov byte [esp + 0x27c], 7
call fcn.0042c930
add esp, 0x14
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
mov byte [esp + 0x26c], 8
call fcn.00431400
mov byte [esp + 0x268], 7
cmp dword [esp + 0x9c], esi
jb 0x4587a9
mov edx, dword [esp + 0x88]
push edx
call fcn.004bf135
add esp, 4
mov byte [esp + 0x268], 6
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x98], edi
mov byte [esp + 0x88], 0
cmp dword [esp + 0xb8], esi
jb 0x4587e0
mov eax, dword [esp + 0xa4]
push eax
call fcn.004bf135
add esp, 4
mov byte [esp + 0x268], 5
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xb4], edi
mov byte [esp + 0xa4], 0
cmp dword [esp + 0x10c], esi
jb 0x458817
mov ecx, dword [esp + 0xf8]
push ecx
call fcn.004bf135
add esp, 4
push 0x561194
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x100]
push eax
call fcn.004264f0
push eax
lea edx, [esp + 0x150]
lea eax, [esp + 0x98]
mov byte [esp + 0x278], 9
call fcn.0042c930
push eax
mov edx, 0x561194
lea eax, [esp + 0xb8]
mov byte [esp + 0x27c], 0xa
call fcn.0042c930
add esp, 0x14
lea ecx, [esp + 0x24]
push ecx
mov ecx, eax
mov byte [esp + 0x26c], 0xb
call fcn.00431400
mov byte [esp + 0x268], 0xa
cmp dword [esp + 0xb8], esi
jb 0x45889c
mov edx, dword [esp + 0xa4]
push edx
call fcn.004bf135
add esp, 4
mov byte [esp + 0x268], 9
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xb4], edi
mov byte [esp + 0xa4], 0
cmp dword [esp + 0x9c], esi
jb 0x4588d3
mov eax, dword [esp + 0x88]
push eax
call fcn.004bf135
add esp, 4
mov byte [esp + 0x268], 5
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x98], edi
mov byte [esp + 0x88], 0
cmp dword [esp + 0x10c], esi
jb 0x458a1f
mov ecx, dword [esp + 0xf8]
push ecx
call fcn.004bf135
add esp, 4
jmp 0x458a1f
lea edx, [esp + 0x140]
push edx
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0xc8]
push ecx
call fcn.004264f0
lea edx, [esp + 0x14c]
push edx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x64]
push ecx
mov byte [esp + 0x280], 0xc
call fcn.004264f0
mov eax, dword [esp + 0x68]
add esp, 0x18
cmp dword [esp + 0x64], esi
jae 0x45895d
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x45897d
mov eax, dword [esp + 0x50]
cmp dword [esp + 0x64], esi
jae 0x458976
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.imagehlp.dll_MakeSureDirectoryPathExists]
mov ecx, dword [esp + 0x50]
cmp dword [esp + 0x64], esi
jae 0x45898b
lea ecx, [esp + 0x50]
mov eax, dword [esp + 0xc0]
cmp dword [esp + 0xd4], esi
jae 0x4589a2
lea eax, [esp + 0xc0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov eax, dword [esp + 0xc0]
cmp dword [esp + 0xd4], esi
jae 0x4589c1
lea eax, [esp + 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x64], esi
jb 0x4589db
mov edx, dword [esp + 0x50]
push edx
call fcn.004bf135
add esp, 4
mov byte [esp + 0x268], 5
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], edi
mov byte [esp + 0x50], 0
cmp dword [esp + 0xd4], esi
jb 0x458a09
mov eax, dword [esp + 0xc0]
push eax
call fcn.004bf135
add esp, 4
mov dword [esp + 0xd4], ebx
mov dword [esp + 0xd0], edi
mov byte [esp + 0xc0], 0
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x114]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x458690
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
push ecx
push edi
lea ecx, [eax + 0x1c]
call fcn.00433e40
add edi, 0xffffffe4
mov esi, edi
add esp, 8
cmp esi, dword [esp + 0x18]
je 0x458a9b
lea ecx, [ecx]
cmp dword [esi + 0x14], 0x10
jb 0x458a81
mov eax, dword [esi]
push eax
call fcn.004bf135
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
add esi, 0x1c
cmp esi, dword [esp + 0x18]
jne 0x458a70
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
push edx
push ebx
lea ecx, [eax + 0x1c]
mov dword [esp + 0x20], edi
call fcn.00433e40
lea esi, [ebx - 0x1c]
add esp, 8
cmp esi, ebx
je 0x458ae9
jmp 0x458ac0
cmp dword [esi + 0x14], 0x10
jb 0x458ad1
mov eax, dword [esi]
push eax
call fcn.004bf135
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
add esi, 0x1c
cmp esi, ebx
jne 0x458ac0
add ebx, 0xffffffe4
mov byte [esp + 0x268], 4
cmp dword [esp + 0x48], 0x10
mov dword [esp + 0x28], ebx
jb 0x458b0c
mov eax, dword [esp + 0x34]
push eax
call fcn.004bf135
add esp, 4
mov byte [esp + 0x268], 1
cmp dword [esp + 0x80], 0x10
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], 0
mov byte [esp + 0x34], 0
jb 0x458b40
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.004bf135
add esp, 4
mov edx, dword [esp + 0x18]
mov dword [esp + 0x80], 0xf
mov dword [esp + 0x7c], 0
mov byte [esp + 0x6c], 0
cmp dword [esp + 0x14], edx
jne 0x458597
mov esi, dword [esp + 0x14]
mov byte [esp + 0x268], 0
cmp dword [esp + 0x24], 0
je 0x458b91
mov eax, dword [esp + 0x24]
mov edi, ebx
call fcn.00431f40
mov eax, dword [esp + 0x24]
push eax
call fcn.004bf135
add esp, 4
mov dword [esp + 0x268], 0xffffffff
test esi, esi
je 0x458bb4
mov edi, dword [esp + 0x18]
mov eax, esi
call fcn.00431f40
push esi
call fcn.004bf135
add esp, 4
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.004be8b8
mov esp, ebp
pop ebp
ret 4