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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5514d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1fc
mov eax, dword [0x5b5ecc]
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0xd8], 0x5602e8
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xd8]
push ebx
push eax
push ecx
lea ecx, [edi + 8]
mov byte [ebp - 4], 2
call fcn.00510d00
test al, al
jne 0x46b393
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 1
call fcn.0043c730
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00537b04
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x78]
cmp dword [eax - 8], ebx
jle 0x46b424
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x46b424
mov edx, dword [ebp - 0x78]
lea eax, [ebp - 0x14]
push edx
push 0x597ddc
push eax
call fcn.0053091a
add esp, 0xc
lea ecx, [ebp - 0x208]
call fcn.0044c590
mov eax, dword [ebp - 0x58]
mov byte [ebp - 4], 3
mov eax, dword [eax - 8]
cmp eax, 5
lea eax, [ebp - 0x58]
jg 0x46b3e3
lea eax, [ebp - 0x88]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
push ebx
push eax
push ecx
lea ecx, [ebp - 0x208]
call fcn.0044fd60
push 0x18
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ebx
call fcn.005380a1
add esp, 4
cmp eax, ebx
je 0x46b472
mov esi, eax
mov dword [eax + 4], 0x561b50
mov dword [eax + 8], ebx
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0xc], ebx
mov dword [ebp - 0x18], esi
jmp 0x46b477
cmp byte [ebp - 0x9a], 4
jne 0x46b453
mov eax, dword [ebp - 0x74]
cmp dword [eax - 8], ebx
jle 0x46b453
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x46b453
mov ecx, dword [ebp - 0x74]
lea edx, [ebp - 0x14]
push ecx
push 0x597ddc
push edx
jmp 0x46b3b8
mov ecx, dword [0x5ba970]
cmp ecx, ebx
je 0x46b365
push 1
push str.Error_839415
call fcn.004593e0
jmp 0x46b365
mov dword [ebp - 0x18], ebx
mov esi, ebx
cmp esi, ebx
je 0x46b54a
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 0x28]
mov dword [esi], edx
test ebx, ebx
je 0x46b530
mov eax, dword [0x5b5ecc]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx]
lea edx, [ebp - 0x24]
mov byte [ebp - 4], 4
mov ecx, dword [eax + 4]
push ecx
push 0x597ddc
push edx
call fcn.0053091a
mov edi, dword [esi + 0xc]
add esi, 4
add esp, 0xc
mov ecx, esi
lea eax, [edi + 1]
push 0xffffffffffffffff
push eax
call fcn.00473210
mov edx, dword [esi + 4]
lea ecx, [edi + edi*2]
lea eax, [ebp - 0x24]
lea esi, [edx + ecx*4]
push eax
mov ecx, esi
call fcn.00537c3d
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [esi + 4]
call fcn.00537c3d
lea edx, [ebp - 0x1c]
lea ecx, [esi + 8]
push edx
call fcn.00537c3d
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call fcn.00537b04
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.00537b04
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.00537b04
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebx + 0x1c]
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x2c], eax
jmp 0x46b487
mov eax, dword [edi + 0x52c]
push esi
push 0x13fb
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
xor ebx, ebx
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x46b55d
push eax
lea ecx, [ebp - 0x208]
call fcn.0044f8b0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, edi
call fcn.0046f3c0
mov edx, dword [edi + 0x530]
mov esi, dword [sym.imp.USER32.dll_PostMessageA]
push ebx
push ebx
push 0x1425
push edx
call esi
mov ecx, dword [edi + 0x4c8]
mov eax, dword [edi + 0x40c]
push ebx
push 0x1427
inc ecx
push 0x111
push eax
mov dword [edi + 0x4c8], ecx
call esi
lea ecx, [ebp - 0x208]
mov byte [ebp - 4], 2
call fcn.0044c930
jmp 0x46b365