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

Disassembly:
push 0xffffffffffffffff
push 0x536bc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push esi
mov esi, ecx
lea ecx, [esp + 0x44]
call fcn.00404710
lea ecx, [esp + 0x24]
mov dword [esp + 0x98], 0
call fcn.004f0e65
mov eax, dword [0x5ab980]
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 4], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xa0]
mov byte [esp + 0x98], 8
mov ecx, dword [eax]
mov edx, dword [ecx - 8]
test edx, edx
jne 0x404d6b
lea ecx, [esp + 0x1c]
mov byte [esp + 0x98], 7
call fcn.005128e4
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], 6
call fcn.005128e4
lea ecx, [esp + 0x20]
mov byte [esp + 0x98], 5
call fcn.005128e4
lea ecx, [esp + 0x14]
mov byte [esp + 0x98], 4
call fcn.005128e4
lea ecx, [esp + 4]
mov byte [esp + 0x98], 3
call fcn.005128e4
lea ecx, [esp + 0xc]
mov byte [esp + 0x98], 2
call fcn.005128e4
lea ecx, [esp + 8]
mov byte [esp + 0x98], 1
call fcn.005128e4
lea ecx, [esp + 0x24]
mov byte [esp + 0x98], 0
call fcn.004f0ea2
lea ecx, [esp + 0x44]
mov dword [esp + 0x98], 0xffffffff
call fcn.00403b30
xor eax, eax
jmp 0x4050d0
push ebx
push ebp
push edi
push eax
lea ecx, [esp + 0x18]
call fcn.00512a1d
lea edx, [esp + 0x14]
push edx
call fcn.0041f9c0
add esp, 4
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push 0x5966e4
push eax
push ecx
call fcn.00512b79
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa8], 9
call fcn.00512a1d
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa4], 8
call fcn.005128e4
mov edx, dword [esp + 0x18]
push 0
push edx
lea ecx, [esp + 0x38]
call fcn.004f0f28
mov edi, dword [esp + 0xb0]
test eax, eax
je 0x404eaa
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea ecx, [esp + 0x30]
call fcn.004f1148
lea ecx, [esp + 0x30]
mov ebp, eax
call fcn.004f110f
test eax, eax
jne 0x404ea2
mov eax, dword [esp + 0x30]
push 0x10
lea ecx, [esp + 0x34]
call dword [eax + 0x38]
test eax, eax
jne 0x404ea2
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x34]
call fcn.004f1217
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0xa8], 0xa
call fcn.00512a1d
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa4], 8
call fcn.005128e4
lea edx, [esp + 0x20]
push 1
push edx
lea ecx, [esp + 0x58]
call fcn.004041e0
test eax, eax
jle 0x404ea2
mov eax, dword [esp + 0x70]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x404e73
push eax
call ebx
cmp eax, 0xffffffff
jne 0x404e73
lea ecx, [esp + 0x70]
call fcn.0051286f
mov eax, dword [esp + 0x68]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x404e8f
push eax
call ebx
cmp eax, 0xffffffff
jne 0x404e8f
lea ecx, [esp + 0x68]
call fcn.0051286f
lea eax, [esp + 0x50]
mov ecx, esi
push eax
mov dword [esp + 0x9c], edi
call fcn.00404be0
test ebp, ebp
jne 0x404de1
mov ecx, dword [esp + 0x18]
push 0
push ecx
lea ecx, [esp + 0x38]
call fcn.004f0f28
test eax, eax
je 0x404fa4
mov bl, 0xb
lea ecx, [esp + 0x30]
call fcn.004f1148
lea ecx, [esp + 0x30]
mov ebp, eax
call fcn.004f110f
test eax, eax
jne 0x404f9c
mov edx, dword [esp + 0x30]
push 0x10
lea ecx, [esp + 0x34]
call dword [edx + 0x38]
test eax, eax
je 0x404f9c
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x30]
push eax
call fcn.004f1340
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
mov byte [esp + 0xb0], bl
call fcn.00512b13
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xa8], 0xc
call fcn.00512a1d
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa4], bl
call fcn.005128e4
lea ecx, [esp + 0x4c]
mov byte [esp + 0xa4], 8
call fcn.005128e4
lea eax, [esp + 0x10]
push eax
call fcn.0041f9c0
add esp, 4
lea ecx, [esp + 0x50]
call fcn.00403be0
lea ecx, [esp + 0x10]
mov dword [esp + 0x54], 0xa
push ecx
lea ecx, [esp + 0x5c]
call fcn.00512a1d
lea edx, [esp + 0x50]
mov ecx, esi
push edx
mov dword [esp + 0x9c], edi
call fcn.00404be0
lea eax, [edi + 1]
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, esi
call fcn.00404c50
test ebp, ebp
jne 0x404ec4
lea ecx, [esp + 0x28]
mov byte [esp + 0xa4], 7
call fcn.005128e4
lea ecx, [esp + 0x24]
mov byte [esp + 0xa4], 6
call fcn.005128e4
lea ecx, [esp + 0x2c]
mov byte [esp + 0xa4], 5
call fcn.005128e4
lea ecx, [esp + 0x20]
mov byte [esp + 0xa4], 4
call fcn.005128e4
lea ecx, [esp + 0x10]
mov byte [esp + 0xa4], 3
call fcn.005128e4
lea ecx, [esp + 0x18]
mov byte [esp + 0xa4], 2
call fcn.005128e4
lea ecx, [esp + 0x14]
mov byte [esp + 0xa4], 1
call fcn.005128e4
lea ecx, [esp + 0x30]
mov byte [esp + 0xa4], 0
call fcn.004f0ea2
lea ecx, [esp + 0x78]
mov dword [esp + 0xa4], 0x15
call fcn.00510e5f
lea ecx, [esp + 0x74]
mov byte [esp + 0xa4], 0x14
call fcn.005128e4
lea ecx, [esp + 0x70]
mov byte [esp + 0xa4], 0x13
call fcn.005128e4
lea ecx, [esp + 0x6c]
mov byte [esp + 0xa4], 0x12
call fcn.005128e4
lea ecx, [esp + 0x68]
mov byte [esp + 0xa4], 0x11
call fcn.005128e4
lea ecx, [esp + 0x64]
mov byte [esp + 0xa4], 0x10
call fcn.005128e4
lea ecx, [esp + 0x60]
mov byte [esp + 0xa4], 0xf
call fcn.005128e4
lea ecx, [esp + 0x5c]
mov byte [esp + 0xa4], 0xe
call fcn.005128e4
lea ecx, [esp + 0x58]
mov byte [esp + 0xa4], 0xd
call fcn.005128e4
pop edi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x90]
pop esi
mov dword fs:[0], ecx
add esp, 0x98
ret 8