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

Disassembly:
mov eax, 0x4f34c9
call fcn.004e6580
sub esp, 0x2e4
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.004115dc
mov eax, dword [esi]
lea ecx, [ebp - 0x30]
push ecx
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
call dword [eax + 0x1c]
cmp dword [ebp - 0x30], 0xd
jne 0x4821c7
mov eax, dword [edi + 0x204]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x50]
mov dword [ebp - 0x18], ebx
mov esi, dword [ebp - 0x2c]
mov eax, dword [esi]
lea ecx, [ebp - 0x18]
push ecx
push esi
mov byte [ebp - 4], 1
call dword [eax + 0x28]
mov dword [ebp - 0x14], ebx
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
push esi
mov byte [ebp - 4], 2
call dword [eax + 0xc0]
mov dword [ebp - 0x1c], ebx
mov eax, dword [esi]
lea ecx, [ebp - 0x1c]
push ecx
push esi
mov byte [ebp - 4], 3
call dword [eax + 0xb0]
mov eax, dword [esi]
lea ecx, [ebp - 0x60]
push ecx
push esi
call dword [eax + 0xd0]
mov eax, dword [esi]
lea ecx, [ebp - 0x38]
push ecx
push esi
call dword [eax + 0x18]
cmp dword [ebp - 0x38], 2
jne 0x4823ec
push esi
lea ecx, [ebp - 0x20]
call fcn.00429138
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 4
call fcn.004a50e0
mov byte [ebp - 4], 5
call fcn.004010c5
cmp eax, ebx
jne 0x48224d
xor eax, eax
jmp 0x482250
mov eax, dword [eax + 0x20]
push ebx
push ebx
push 1
push 1
push ebx
push ebx
push ebx
push eax
push 3
lea ecx, [ebp - 0xe8]
call fcn.004a3f60
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push eax
mov byte [ebp - 4], 6
call dword [ecx + 0x20]
push dword [ebp - 0x10]
lea ecx, [ebp + 8]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_8]
push ebx
push ebx
mov ecx, eax
mov byte [ebp - 4], 7
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
lea ecx, [ebp - 0xe8]
call fcn.004a5b00
lea ecx, [ebp + 8]
mov byte [ebp - 4], 6
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
push dword [ebp - 0x10]
lea ecx, [ebp - 0x24]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_8]
mov ecx, eax
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
lea ecx, [ebp - 0x24]
sete byte [ebp + 0xb]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
cmp byte [ebp + 0xb], bl
je 0x482312
push dword [ebp - 0x10]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call edi
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 4
call fcn.004a5160
mov eax, dword [ebp - 0x20]
cmp eax, ebx
mov byte [ebp - 4], 3
je 0x4823f2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4823f2
push dword [edi + 0x200]
lea ecx, [ebp - 0x28]
call fcn.00403103
lea ecx, [ebp - 0x58]
call fcn.0047a13b
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
lea edx, [ebp - 0x50]
push edx
push dword [ebp - 0x10]
mov byte [ebp - 4], 9
push eax
call dword [ecx + 0x78]
test eax, eax
jl 0x4823b8
lea ecx, [ebp - 0x58]
call fcn.0044c523
cmp eax, ebx
mov dword [ebp - 0x34], eax
je 0x4823b8
cmp dword [eax], ebx
mov dword [ebp + 8], ebx
jle 0x4823b8
lea edi, [eax + 4]
lea eax, [edi + 0x200]
push eax
push edi
lea eax, [ebp - 0x2f0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x2f0]
push eax
lea ecx, [ebp - 0x24]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_8]
push ebx
push ebx
mov ecx, eax
mov byte [ebp - 4], 0xa
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
lea ecx, [ebp - 0xe8]
call fcn.004a5b00
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 9
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
inc dword [ebp + 8]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp + 8]
add edi, 0xa00
cmp ecx, dword [eax]
jl 0x482359
lea ecx, [ebp - 0xe8]
call fcn.004a5e90
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x58], 0x511988
call fcn.0044c54e
mov eax, dword [ebp - 0x28]
cmp eax, ebx
mov byte [ebp - 4], 6
je 0x4822de
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4822de
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [ebp - 0x1c]
call edi
push dword [ebp - 0x14]
call edi
push dword [ebp - 0x18]
call edi
mov eax, dword [esi]
or dword [ebp - 4], 0xffffffff
push esi
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8