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

Disassembly:
push ebp
sub esp, 0x304
lea ebp, [esp - 4]
mov eax, dword [0x434018]
xor eax, ebp
mov dword [ebp + 0x304], eax
push 0x38
mov eax, 0x41fded
call fcn.0041de82
xor edi, edi
push 0x103
lea eax, [ebp + 0x201]
push edi
push eax
mov ebx, ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], 1
mov byte [ebp + 0x200], 0
call sub.MSVCR90.dll_memset
mov ecx, dword [ebx + 0x94]
add esp, 0xc
call sub.mfc90.dll_Ordinal_3351
cmp dword [eax + 0x2c], edi
jne 0x40b494
mov ecx, ebx
mov dword [ebp - 0x28], edi
call fcn.0040abdb
mov dword [ebp - 0x14], eax
cmp eax, edi
je 0x40b494
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.00409a15
mov ecx, eax
call dword [sym.imp.mfc90.dll_Ordinal_910]
lea edx, [ebp + 0x200]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x40b430
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea eax, [ebp + 0x200]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40b52e
test al, 0x10
je 0x40b546
mov ecx, dword [ebx + 0x94]
call sub.mfc90.dll_Ordinal_3351
mov eax, dword [eax + 0x1c]
mov byte [eax], 0
lea eax, [ebp + 0x200]
push eax
mov ecx, ebx
call fcn.00409111
mov ecx, dword [ebx + 0x94]
call sub.mfc90.dll_Ordinal_3351
lea ecx, [ebp + 0x200]
mov dword [eax + 0x2c], ecx
mov ecx, dword [ebx + 0x94]
mov eax, dword [ecx]
call dword [eax + 0x154]
cmp eax, 1
jne 0x40b6d7
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_316]
push 0x425a94
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call dword [sym.imp.mfc90.dll_Ordinal_820]
push 0x42446c
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_945]
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov ecx, dword [ebx + 0x94]
mov byte [ebp - 4], 1
call fcn.00409e6e
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x40b51c
mov ecx, dword [ebx + 0x94]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00409375
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call dword [sym.imp.mfc90.dll_Ordinal_817]
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov byte [ebp - 4], 3
jmp 0x40b64d
mov ecx, dword [ebx + 0x94]
call sub.mfc90.dll_Ordinal_3351
test dword [eax + 0x34], 0x1000
jne 0x40b461
lea eax, [ebp]
push eax
lea eax, [ebp + 0x100]
push eax
push edi
lea eax, [ebp + 0x200]
push edi
push eax
call dword [sym.imp.MSVCR90.dll__splitpath]
lea eax, [ebp]
add esp, 0x14
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b568
lea edi, [ebp + 0x100]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40b578
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x94]
lea esi, [ebp + 0x100]
call sub.mfc90.dll_Ordinal_3351
mov eax, dword [eax + 0x1c]
mov cl, byte [esi]
inc esi
mov byte [eax], cl
inc eax
test cl, cl
jne 0x40b5a4
xor edi, edi
jmp 0x40b472
mov ecx, dword [ebx + 0x94]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00409375
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call dword [sym.imp.mfc90.dll_Ordinal_817]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea eax, [ebp + 0x100]
push eax
lea eax, [ebp]
push eax
push edi
push edi
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
call dword [sym.imp.MSVCR90.dll__splitpath]
lea eax, [ebp]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004094ef
lea ecx, [ebp + 0x100]
push ecx
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 5
call fcn.004094ef
add esp, 0x2c
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call dword [sym.imp.mfc90.dll_Ordinal_941]
lea ecx, [ebp - 0x30]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call dword [sym.imp.mfc90.dll_Ordinal_601]
cmp dword [ebp - 0x1c], edi
jne 0x40b5b5
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call sub.mfc90.dll_Ordinal_2592
mov esi, eax
push esi
call fcn.00409015
pop ecx
test eax, eax
je 0x40b69e
push 2
push ebx
lea ecx, [ebp - 0x44]
call fcn.00409e1d
lea eax, [ebp - 0x18]
mov ecx, ebx
mov dword [ebp - 0x34], eax
call sub.mfc90.dll_Ordinal_2896
lea ecx, [ebp - 0x44]
push ecx
push eax
push 0x4e
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, edi
jne 0x40b6b6
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
mov ecx, ebx
call sub.mfc90.dll_Ordinal_6559
mov dword [ebp - 0x24], 1
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_601]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp 0x40b715
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call sub.mfc90.dll_Ordinal_2592
mov esi, eax
push esi
call fcn.00409015
pop ecx
test eax, eax
je 0x40b715
push 2
push ebx
lea ecx, [ebp - 0x44]
call fcn.00409e1d
mov ecx, ebx
call sub.mfc90.dll_Ordinal_2896
lea ecx, [ebp - 0x44]
push ecx
push eax
push 0x4e
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebp - 0x28], edi
jne 0x40b728
mov ecx, dword [ebx + 0x94]
call sub.mfc90.dll_Ordinal_3351
mov dword [eax + 0x2c], edi
mov ecx, ebx
call sub.mfc90.dll_Ordinal_6291
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x304]
xor ecx, ebp
call fcn.0041de66
add ebp, 0x308
leave
ret