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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a45a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov eax, dword [edi + 0x74]
mov dword [ebp - 0x14], ecx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x49455e
mov eax, dword [edi + 0x74]
push ebx
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], ebx
mov word [ebp - 0x34], bx
call fcn.00402600
mov eax, dword [edi + 0x5c]
mov byte [ebp - 4], 1
cmp eax, ebx
jne 0x4942f4
lea eax, [edi + 0x60]
mov ecx, dword [ebp - 0x38]
cmp ecx, ebx
jne 0x4942fe
lea ecx, [ebp - 0x34]
push eax
push ecx
call fcn.0056eb4c
add esp, 8
test eax, eax
je 0x4944b6
mov eax, dword [edi + 0x5c]
cmp eax, ebx
jne 0x49431a
lea eax, [edi + 0x60]
push 1
push eax
call fcn.004654e0
mov eax, dword [edi + 0x5c]
add esp, 8
cmp eax, ebx
jne 0x49432f
lea eax, [edi + 0x60]
mov ecx, dword [ebp - 0x38]
cmp ecx, ebx
jne 0x494339
lea ecx, [ebp - 0x34]
push 1
push eax
push ecx
call fcn.004652c0
add esp, 0xc
cmp eax, ebx
jne 0x4944b6
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x1c], bx
mov eax, dword [edi + 0x5c]
mov byte [ebp - 4], 2
cmp eax, ebx
jne 0x494365
lea eax, [edi + 0x60]
push eax
lea ecx, [ebp - 0x20]
call fcn.00402e10
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x494378
lea eax, [ebp - 0x1c]
push 0x5c
push eax
call fcn.0056cc8e
add esp, 8
cmp eax, ebx
je 0x49446d
add eax, 2
mov word [eax], bx
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x49439b
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.00465670
add esp, 8
cmp eax, ebx
jne 0x49446d
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x4943b8
lea eax, [ebp - 0x1c]
add eax, 6
push 0x5c
push eax
call fcn.0056ca4b
add esp, 8
mov esi, eax
cmp esi, ebx
je 0x494449
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x4943d6
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x28], bx
call fcn.00402e10
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 3
cmp ecx, ebx
jne 0x4943f7
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x494401
lea eax, [ebp - 0x1c]
mov edx, esi
sub edx, eax
sar edx, 1
mov word [ecx + edx*2], bx
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x494415
lea eax, [ebp - 0x28]
push 1
push eax
call fcn.00465670
add esp, 8
cmp eax, ebx
jne 0x494489
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x49442e
lea eax, [ebp - 0x28]
push 1
push eax
call fcn.00465850
add esp, 8
cmp eax, ebx
jne 0x494489
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00401070
mov eax, dword [edi + 0x5c]
cmp eax, ebx
jne 0x494453
lea eax, [edi + 0x60]
mov ecx, dword [ebp - 0x38]
cmp ecx, ebx
jne 0x49445d
lea ecx, [ebp - 0x34]
push 1
push eax
push ecx
call fcn.004652c0
add esp, 0xc
cmp eax, ebx
jne 0x4944aa
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], bl
call fcn.00401070
jmp 0x49455e
add esi, 2
push 0x5c
push esi
call fcn.0056ca4b
add esp, 8
lea ecx, [ebp - 0x2c]
mov esi, eax
mov byte [ebp - 4], 2
call fcn.00401070
jmp 0x4943c8
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00401070
mov esi, dword [ebp + 8]
xor ecx, ecx
xor eax, eax
mov edx, dword [ebp - 0x14]
cmp eax, dword [edx + 0x514]
jge 0x4944d9
mov edx, dword [edx + 0x510]
cmp dword [edx + eax*8], esi
lea edx, [edx + eax*8]
jne 0x49453c
mov ecx, dword [edx + 4]
cmp ecx, ebx
jne 0x4944f3
mov eax, dword [edi + 0x18]
cmp eax, ebx
je 0x494504
mov ecx, dword [ebp - 0x14]
push eax
call fcn.004945d0
mov ecx, eax
cmp ecx, ebx
je 0x494504
push 3
mov dword [ecx + 0xcc], 1
call fcn.0053e5c0
mov eax, dword [edi + 0x5c]
cmp eax, ebx
jne 0x49450e
lea eax, [edi + 0x60]
push ebx
push ebx
push eax
call fcn.00541440
add esp, 0xc
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], bl
call fcn.00401070
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
inc eax
jmp 0x4944bd
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8