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

Disassembly:
push 0xffffffffffffffff
push 0x40ce60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov ebp, ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x48], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x28]
mov byte [esp + 0x48], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48], 3
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 4
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x34]
mov byte [esp + 0x48], 5
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x38]
mov byte [esp + 0x48], 6
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x54]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x4c], 7
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0x20]
lea esi, [ebp + 0x2c]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x50], 8
call fcn.00404480
test eax, eax
je 0x402eac
add eax, 0xc
lea ecx, [esp + 0x24]
push eax
call fcn.00402220
push 0x5c
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::ReverseFind
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::Left
mov ecx, dword [esp + 0x24]
push 0x413068
push ecx
mov byte [esp + 0x50], 0xe
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x402efc
push 0x5c
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::ReverseFind
lea edx, [esp + 0x1c]
push eax
push edx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea ecx, [esp + 0x1c]
mov ebx, eax
call sub.MFC42.DLL_CString::CString
jmp 0x402f09
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x48], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x48], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48], 0xa
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x48], 9
jmp 0x40318c
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x402f80
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 2
je 0x402f22
call edi
cmp eax, 3
jne 0x402f80
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x48], 0x13
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x48], 0x12
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 0x11
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48], 0x10
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x48], 0xf
jmp 0x40318c
test bl, 0x10
push 0x5c
lea ecx, [esp + 0x30]
je 0x4032f0
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea ecx, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::Mid
mov edx, dword [esp + 0x10]
push 0x5c
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 0x14
mov edi, dword [edx - 8]
call sub.MFC42.DLL_CString::ReverseFind
dec edi
cmp edi, eax
jne 0x402fee
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c], 0x15
call sub.MFC42.DLL_CString::operator_1
mov byte [esp + 0x48], 0x14
lea ecx, [esp + 0x1c]
jmp 0x40303d
lea eax, [esp + 0x10]
push 0x41305c
lea ecx, [esp + 0x24]
push eax
push ecx
call sub.MFC42.DLL_operator_2
lea edx, [esp + 0x14]
mov bl, 0x16
push edx
push eax
lea eax, [esp + 0x24]
mov byte [esp + 0x50], bl
push eax
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c], 0x17
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], bl
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x48], 0x14
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
push ecx
push edx
call edi
add esp, 8
test eax, eax
jne 0x4030e3
mov ecx, dword [esp + 0x50]
lea eax, [esp + 0x24]
push eax
push ecx
mov ecx, esi
call fcn.00403c50
mov ecx, eax
call fcn.00402220
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x48], 0x1c
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x48], 0x1b
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 0x1a
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48], 0x19
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x48], 0x18
jmp 0x4034e5
mov edx, dword [esp + 0x50]
push 0x413068
push edx
call edi
add esp, 8
test eax, eax
jne 0x403104
lea eax, [esp + 0x10]
lea ecx, [esp + 0x30]
push eax
call sub.MFC42.DLL_CString::operator_1
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [ebp + 0x48]
call fcn.00409c90
test eax, eax
jne 0x4031c9
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x48], 0x21
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x48], 0x20
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 0x1f
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48], 0x1e
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x48], 0x1d
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x50]
mov byte [esp + 0x48], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x54]
mov dword [esp + 0x48], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x403520
mov eax, dword [esp + 0x50]
push 0x413068
push eax
call edi
add esp, 8
test eax, eax
jne 0x403279
mov ecx, dword [esp + 0x10]
push 0x5c
mov edi, dword [ecx - 8]
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReverseFind
dec edi
cmp edi, eax
jne 0x403225
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c], 0x22
call sub.MFC42.DLL_CString::operator_1
mov byte [esp + 0x48], 0x14
lea ecx, [esp + 0x20]
jmp 0x403274
lea edx, [esp + 0x10]
push 0x41305c
lea eax, [esp + 0x20]
push edx
push eax
call sub.MFC42.DLL_operator_2
lea ecx, [esp + 0x14]
lea edx, [esp + 0x20]
push ecx
mov bl, 0x23
push eax
push edx
mov byte [esp + 0x54], bl
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c], 0x24
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], bl
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x48], 0x14
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x1c]
push ecx
push eax
mov ecx, esi
mov ebx, eax
call fcn.00404480
mov edi, eax
test edi, edi
jne 0x4032d5
mov eax, dword [esi + 4]
test eax, eax
jne 0x4032a6
mov edx, dword [esi + 8]
push 1
push edx
mov ecx, esi
call fcn.004043a0
mov ecx, esi
call fcn.00404410
mov edi, eax
mov eax, dword [esp + 0x1c]
push ebx
lea ecx, [edi + 8]
mov dword [edi + 4], eax
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x1c]
mov eax, dword [ecx + edx*4]
mov dword [edi], eax
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x1c]
mov dword [ecx + edx*4], edi
lea eax, [esp + 0x24]
lea ecx, [edi + 0xc]
push eax
call fcn.00402220
mov byte [esp + 0x48], 0xe
lea ecx, [esp + 0x14]
jmp 0x403487
call sub.MFC42.DLL_CString::ReverseFind
dec eax
lea ecx, [esp + 0x1c]
push eax
push ecx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::Left
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
push edx
push eax
mov byte [esp + 0x50], 0x25
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x40339b
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x48], 0x2a
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x48], 0x29
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 0x28
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48], 0x27
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x48], 0x26
jmp 0x4034e5
lea edx, [esp + 0x10]
lea ecx, [esp + 0x30]
push edx
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x50]
push eax
mov dword [esp + 0x24], eax
mov ebx, eax
call sub.MFC42.DLL_HashKey
xor edx, edx
div dword [esi + 8]
mov eax, dword [esi + 4]
test eax, eax
mov ebp, edx
je 0x4033ec
mov edi, dword [eax + ebp*4]
test edi, edi
je 0x4033ec
mov eax, dword [edi + 8]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x4033e8
mov edi, dword [edi]
test edi, edi
jne 0x4033ce
jmp 0x4033ec
test edi, edi
jne 0x403427
mov eax, dword [esi + 4]
test eax, eax
jne 0x403400
mov eax, dword [esi + 8]
push 1
push eax
mov ecx, esi
call fcn.004043a0
mov ecx, esi
call fcn.00404410
mov ecx, dword [esp + 0x20]
mov edi, eax
push ecx
lea ecx, [edi + 8]
mov dword [edi + 4], ebp
call sub.MFC42.DLL_CString::operator
mov edx, dword [esi + 4]
mov eax, dword [edx + ebp*4]
mov dword [edi], eax
mov ecx, dword [esi + 4]
mov dword [ecx + ebp*4], edi
lea esi, [edi + 0xc]
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::operator_1
lea eax, [esp + 0x28]
lea ecx, [esi + 4]
push eax
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esi + 8]
call sub.MFC42.DLL_CString::operator_1
lea edx, [esp + 0x30]
lea ecx, [esi + 0xc]
push edx
call sub.MFC42.DLL_CString::operator_1
lea eax, [esp + 0x34]
lea ecx, [esi + 0x10]
push eax
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esi + 0x14]
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [esp + 0x3c]
mov byte [esp + 0x48], 0xe
mov dword [esi + 0x18], edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x48], 0x2f
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x48], 0x2e
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 0x2d
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48], 0x2c
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x48], 0x2b
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x50]
mov byte [esp + 0x48], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x54]
mov dword [esp + 0x48], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x3c
ret 8