Function at 0x46508c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4c3ec8
call fcn.004bf97c
sub esp, 0x58
push ebx
push esi
push edi
push 0x819a
lea eax, [ebp - 0x20]
call fcn.00408a73
mov eax, dword [eax]
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.USER32.dll_MessageBoxA]
pop ecx
push 0x23
push dword [0x4e5c1c]
push eax
push dword [esi + 4]
call ebx
mov edi, eax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x4650d9
push eax
call fcn.00401377
xor eax, eax
cmp edi, 2
je 0x465426
cmp edi, 6
sete al
push 2
push 0xffffffffffffffff
mov dword [ebp - 0x1c], eax
lea eax, [esi + 0x4f8]
push eax
mov dword [ebp - 0x20], eax
call fcn.0042ff00
mov edi, eax
cmp edi, 0xffffffff
jne 0x46515a
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x465116
mov eax, dword [eax + 4]
jmp 0x465118
xor eax, eax
test eax, eax
jle 0x465424
push 0x8197
lea eax, [ebp + 8]
call fcn.00408a73
pop ecx
push 0x30
push dword [0x4e5c1c]
push dword [eax]
push dword [esi + 4]
call ebx
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x465424
push eax
call fcn.00401377
jmp 0x465424
xor ebx, ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 4], ebx
push edi
lea eax, [ebp - 0x40]
call fcn.004abb43
push 2
push edi
push dword [ebp - 0x20]
call fcn.0042ff00
mov edi, eax
cmp edi, 0xffffffff
jne 0x46516b
xor eax, eax
cmp dword [ebp - 0x1c], ebx
push 1
setne al
inc eax
imul eax, dword [ebp - 0x3c]
imul eax, eax, 0x105
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_calloc]
cmp dword [ebp - 0x3c], ebx
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
jle 0x46540d
cmp eax, ebx
je 0x46541c
cmp dword [ebp - 0x3c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ebx
jle 0x465322
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x3c]
jae 0x465437
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx + eax*4]
mov ecx, dword [esi + 0xf0]
call fcn.004ad145
mov edi, dword [eax]
cmp edi, ebx
je 0x4651f2
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp edi, ebx
jne 0x4651ff
mov byte [ebp - 4], 0
jmp 0x465313
push edi
call fcn.0040d957
test eax, eax
je 0x465221
push 0xffffffffffffffff
push 0xe102
push 0x111
push dword [0x4e5c18]
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
lea eax, [ebp - 0x24]
call fcn.00488f45
mov eax, dword [eax]
push 0x4cbffc
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
mov ebx, eax
mov eax, dword [ebp - 0x24]
neg ebx
sbb bl, bl
add eax, 0xfffffff4
pop ecx
inc bl
cmp eax, dword [0x4e4154]
pop ecx
je 0x465256
push eax
call fcn.00401377
test bl, bl
jne 0x465306
push edi
lea eax, [ebp - 0x30]
call fcn.0040405d
push dword [ebp - 0x30]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call ebx
cmp eax, 0xffffffff
je 0x465298
test al, 0x10
jne 0x465298
push dword [ebp - 0x30]
push dword [ebp - 0x10]
call sub.MSVCRT.dll_strcpy
mov eax, dword [ebp - 0x30]
mov eax, dword [eax - 8]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
lea eax, [ecx + eax + 1]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x1c], 0
je 0x4652f2
lea eax, [ebp - 0x30]
push eax
mov esi, 0x4e56f0
push esi
lea eax, [ebp - 0x28]
call fcn.00428f06
lea eax, [ebp - 0x30]
push eax
call fcn.00428f68
mov esi, dword [ebp - 0x28]
push esi
call ebx
cmp eax, 0xffffffff
je 0x4652de
test al, 0x10
jne 0x4652de
mov ebx, dword [ebp - 0x10]
push esi
push ebx
call sub.MSVCRT.dll_strcpy
mov eax, dword [esi - 8]
pop ecx
lea eax, [ebx + eax + 1]
pop ecx
mov dword [ebp - 0x10], eax
lea eax, [esi - 0xc]
cmp eax, dword [0x4e4154]
je 0x4652ef
push eax
call fcn.00401377
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x465306
push eax
call fcn.00401377
mov eax, edi
mov byte [ebp - 4], 0
call fcn.00404037
xor ebx, ebx
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x3c]
jl 0x4651c8
xor eax, eax
push 6
pop ecx
lea edi, [ebp - 0x5c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 4]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x18]
cmp byte [eax], 0
mov dword [ebp - 0x5c], 3
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x50], 0x40
mov dword [ebp - 0x4e], ebx
je 0x46536d
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
jne 0x46540d
cmp dword [ebp - 0x4e], ebx
jne 0x46540d
mov eax, dword [esi + 0xf0]
cmp eax, ebx
je 0x46537c
mov eax, dword [eax + 0x18]
jmp 0x46537f
or eax, 0xffffffff
cmp dword [0x4e6164], ebx
mov dword [ebp - 0x10], eax
je 0x465399
cmp dword [0x4e60d8], ebx
mov dword [ebp - 0x1c], 1
jne 0x46539c
mov dword [ebp - 0x1c], ebx
mov edi, dword [ebp - 0x3c]
dec edi
cmp edi, ebx
jl 0x4653db
cmp edi, dword [ebp - 0x3c]
jae 0x465437
mov eax, dword [ebp - 0x40]
mov ebx, dword [eax + edi*4]
cmp ebx, dword [ebp - 0x10]
jge 0x4653bd
dec dword [ebp - 0x10]
jmp 0x4653c3
jne 0x4653c3
or dword [ebp - 0x10], 0xffffffff
push dword [ebp - 0x1c]
push 1
push dword [esi + 0xf0]
call fcn.004531a7
dec edi
mov esi, dword [ebp + 8]
jns 0x4653a4
xor ebx, ebx
mov eax, dword [esi + 0xf0]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0x18], ecx
mov eax, dword [esi + 0xf0]
push dword [eax + 4]
mov eax, dword [ebp - 0x20]
call fcn.0046943f
push ebx
or eax, 0xffffffff
mov ecx, esi
call fcn.0045f705
push 0x4e58a4
call fcn.0048b88b
cmp dword [ebp - 0x18], ebx
je 0x46541c
push dword [ebp - 0x18]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
lea eax, [ebp - 0x40]
call fcn.004062dd
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
push 0x80070057
call fcn.004010a4
int3