Function at 0x40afd0
Capabilities:
Check for peb beingdebugged flag
Get file attributes
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41963e
mov eax, dword fs:[0]
push eax
sub esp, 0x8a4
mov eax, dword [0x425028]
xor eax, esp
mov dword [esp + 0x89c], eax
push ebx
push edi
mov eax, dword [0x425028]
xor eax, esp
push eax
lea eax, [esp + 0x8b0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x30], eax
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b020
sub eax, edx
sar eax, 1
mov edi, eax
xor ebx, ebx
push 0x3a
lea eax, [esp + 0x6e]
push ebx
push eax
mov dword [esp + 0x2c], edi
mov word [esp + 0x74], bx
call sub.MSVCR80.dll_memset
push 0x41cc70
lea ecx, [esp + 0x78]
push 0x1e
push ecx
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esp, 0x18
test edi, edi
mov dword [esp + 0x18], ebx
jle 0x40b376
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
mov cx, word [edx + eax*2]
mov word [esp + 0x68], cx
push 0xa
lea ecx, [esp + 0x50]
call sub.MFC80U.DLL_Ordinal_558
lea ecx, [esp + 0x10]
mov dword [esp + 0x8b8], 0
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea edx, [esp + 0x68]
push edx
lea ecx, [esp + 0x14]
mov byte [esp + 0x8bc], 2
call dword [sym.imp.MFC80U.DLL_Ordinal_768]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
push ecx
mov edi, 0x41c688
call fcn.004071f0
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x8bc], 3
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
lea ecx, [esp + 0x24]
mov byte [esp + 0x8b8], 2
call dword [sym.imp.MFC80U.DLL_Ordinal_575]
lea ecx, [esp + 0x34]
call sub.MFC80U.DLL_Ordinal_386
mov byte [esp + 0x8b8], 4
lea esp, [esp]
mov edx, dword [esp + 0x10]
push 0
push edx
lea ecx, [esp + 0x3c]
call sub.MFC80U.DLL_Ordinal_2271
test eax, eax
je 0x40b298
jmp 0x40b130
cmp byte [esi + 0x3420], 0
je 0x40b298
lea ecx, [esp + 0x34]
call sub.MFC80U.DLL_Ordinal_2279
mov dword [esp + 0x1c], eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x38]
call sub.MFC80U.DLL_Ordinal_2745
lea ecx, [esp + 0x34]
mov byte [esp + 0x8b8], 5
call sub.MFC80U.DLL_Ordinal_3925
test eax, eax
jne case.0x40b1d1.2
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 0x40]
push 0x10
lea ecx, [esp + 0x38]
call eax
test eax, eax
je 0x40b197
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x50]
call sub.MFC80U.DLL_Ordinal_970
jmp case.0x40b1d1.2
mov edx, dword [esp + 0xc]
push edx
lea eax, [esp + 0xa8]
push 0x400
push eax
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esp, 0xc
lea ecx, [esp + 0xa4]
call fcn.004061b0
add eax, 0xffffffff
cmp eax, 0x19
ja case.0x40b1d1.2
movzx ecx, byte [eax + 0x40b3a8]
jmp dword [ecx*4 + 0x40b39c]
lea edx, [esp + 0xa4]
push edx
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
test al, 2
je case.0x40b1d1.2
mov eax, dword [esp + 0xc]
push 0
push ebx
push 0
push 0
push eax
push ebx
lea edi, [esi + 0x9b0]
push 3
mov ecx, edi
call sub.MFC80U.DLL_Ordinal_3873
mov eax, dword [esi + 0x3428]
mov ecx, dword [esi + 0xaa8]
push eax
push 0xffffffffffffffff
push ecx
call sub.MFC80U.DLL_Ordinal_1079
mov ecx, dword [eax + 0x94]
mov ecx, dword [ecx]
jmp 0x40b262
mov edx, dword [esp + 0xc]
push 0
push ebx
push 0
push 0
push edx
push ebx
lea edi, [esi + 0x9b0]
push 3
mov ecx, edi
call sub.MFC80U.DLL_Ordinal_3873
mov eax, dword [esi + 0x3428]
mov ecx, dword [esi + 0xaa8]
push eax
push 0xffffffffffffffff
push ecx
call sub.MFC80U.DLL_Ordinal_1079
mov eax, dword [eax + 0x94]
mov ecx, dword [eax]
call fcn.0040ba30
mov eax, dword [esi + 0x33f8]
push eax
push 1
push ebx
mov ecx, edi
call sub.MFC80U.DLL_Ordinal_5869
add ebx, 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x8b8], 4
call dword [sym.imp.MFC80U.DLL_Ordinal_575]
cmp dword [esp + 0x1c], 0
jne 0x40b130
cmp dword [esp + 0x58], 0
je 0x40b328
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x50]
call sub.MFC80U.DLL_Ordinal_5456
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x8bc], 6
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x8b8], 4
call dword [sym.imp.MFC80U.DLL_Ordinal_575]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x2c]
push eax
mov edi, 0x41c690
call fcn.004071f0
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x8bc], 7
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
lea ecx, [esp + 0x28]
mov byte [esp + 0x8b8], 4
call dword [sym.imp.MFC80U.DLL_Ordinal_575]
lea ecx, [esp + 0x34]
call sub.MFC80U.DLL_Ordinal_1431
cmp byte [esi + 0x3420], 0
jne 0x40b110
lea ecx, [esp + 0x34]
mov byte [esp + 0x8b8], 2
call sub.MFC80U.DLL_Ordinal_631
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_575]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_575]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x8b8], 0xffffffff
call sub.MFC80U.DLL_Ordinal_746
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x18], eax
jl 0x40b06a
mov ecx, dword [esp + 0x8b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x89c]
xor ecx, esp
call fcn.00417909
mov esp, ebp
pop ebp
ret 4