Function at 0x40c010
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4272b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x480
mov eax, dword [0x43bba8]
push ebx
push esi
xor ebx, ebx
mov dword [esp + 0x480], eax
push edi
mov esi, ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x494], ebx
call sub.MFC71.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
call fcn.004094b0
test eax, eax
je 0x40c578
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
push ebx
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x49c], 1
call dword [eax + 0x2c]
test al, al
je 0x40c563
call sub.MFC71.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x20]
cmp ecx, ebx
je 0x40c0a6
mov ecx, dword [ecx + 0x20]
mov dword [esp + 0x28], ecx
jmp 0x40c0aa
mov dword [esp + 0x28], ebx
mov edx, dword [eax + 0x50]
push edx
lea ecx, [esp + 0x30]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_5]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x494], 2
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
cmp eax, ebx
je 0x40c0ed
push 0xffffffffffffffff
push eax
call fcn.00407f30
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x30], edi
jne 0x40c0f3
push 0x8007000e
call fcn.00407ee0
mov dword [esp + 0x30], ebx
mov edi, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x10]
push eax
push 0x42d6a8
push 0x17
push ebx
push 0x42e8c4
mov byte [esp + 0x4a8], 5
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40c526
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40c52a
mov edx, dword [esp + 0x28]
mov ecx, dword [eax]
push ebx
push 1
push edi
push edx
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x40c526
mov dword [esp + 0x1c], ebx
mov ecx, dword [ebp + 8]
mov byte [esp + 0x494], 6
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_7]
mov eax, dword [eax]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
lea edi, [esp + 0x24]
push edi
lea edi, [esi + 0x54]
push edi
lea edi, [esp + 0x24]
push edi
mov edi, dword [esp + 0x20]
push edi
push eax
mov byte [esp + 0x4a8], 7
call dword [edx + 0x14]
lea ecx, [esp + 0x20]
movzx edi, al
mov byte [esp + 0x494], 6
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x20]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x38], ebx
mov edx, dword [eax]
push eax
call dword [edx + 0x24]
cmp edi, ebx
jne 0x40c216
cmp dword [esp + 0x34], ebx
jle 0x40c216
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov byte [esp + 0x494], 5
je 0x40c1e0
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov byte [esp + 0x494], 4
je 0x40c1f6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x24]
cmp eax, ebx
mov byte [esp + 0x494], 3
je 0x40c20c
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x30]
push eax
jmp 0x40c553
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov byte [esp + 0x494], 5
je 0x40c22c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov byte [esp + 0x494], 4
je 0x40c242
mov edx, dword [eax]
push eax
call dword [edx + 8]
cmp edi, ebx
jne 0x40c2f9
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x40c25d
push eax
call fcn.004086d0
add esp, 4
jmp 0x40c2d9
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 0x91
lea ecx, [esp + 0x14]
mov byte [esp + 0x498], 8
call dword [sym.imp.MFC71.DLL_ATL::CStringT::LoadStringA]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [ebp + 8]
mov byte [esp + 0x494], 9
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0xc
push ebx
push ebx
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call sub.MFC71.DLL_AfxMessageBox_1
lea ecx, [esp + 0x1c]
call dword [0x42a1f0]
lea ecx, [esp + 0x10]
call dword [0x42a1f0]
mov eax, dword [esp + 0x24]
cmp eax, ebx
mov byte [esp + 0x494], 3
je 0x40c2ef
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esp + 0x30]
push edx
jmp 0x40c553
lea eax, [esp + 0x14]
push eax
lea ecx, [esi + 0x64]
call fcn.0040bfb0
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40c314
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [ebp + 8]
lea ecx, [esi + 0x68]
push edx
mov dword [esp + 0x18], ebx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
xor eax, eax
mov ecx, 0x50
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esi + 0x68]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x20], eax
je 0x40c389
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov dword [esi + 0x80], 1
mov dword [esi + 0x70], edx
mov edx, dword [esp + 0x60]
xor eax, eax
mov dword [esi + 0x6c], ecx
mov ecx, dword [esp + 0x5c]
or eax, edx
xor edi, edi
mov dword [esi + 0x78], eax
mov eax, dword [esp + 0x20]
or ecx, edi
push eax
mov dword [esi + 0x7c], ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, esi
call fcn.0040bbb0
cmp eax, ebx
je 0x40c39f
mov ecx, dword [ebp + 8]
push ecx
mov ecx, eax
call fcn.0040eca0
mov ecx, esi
call fcn.0040bcf0
cmp eax, ebx
je 0x40c4c6
mov ecx, eax
call fcn.00407910
mov esi, eax
cmp esi, ebx
je 0x40c4c6
xor eax, eax
mov byte [esp + 0x380], bl
mov ecx, 0x3f
lea edi, [esp + 0x381]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x180], bl
mov ecx, 0x3f
lea edi, [esp + 0x181]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x280], bl
mov ecx, 0x3f
lea edi, [esp + 0x281]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x280]
push edx
stosb byte es:[edi], al
lea eax, [esp + 0x184]
push eax
lea ecx, [esp + 0x388]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x34]
push edx
mov byte [esp + 0x38], bl
mov word [esp + 0x39], bx
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.MSVCR71.dll__splitpath]
add esp, 0x14
lea eax, [esp + 0x280]
push eax
lea ecx, [esp + 0x40]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_5]
mov edi, eax
lea ecx, [esp + 0x180]
push ecx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x498], 0xa
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_5]
push edi
push eax
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x4a0], 0xb
call fcn.00402680
add esp, 0xc
lea ecx, [esp + 0x38]
call dword [0x42a1f0]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x494], 0xd
call dword [0x42a1f0]
push 1
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push ebx
mov ecx, esi
call sub.MFC71.DLL_CStatusBar::SetPaneText
lea ecx, [esp + 0x20]
call dword [0x42a1f0]
mov eax, dword [esp + 0x24]
cmp eax, ebx
mov byte [esp + 0x494], 3
je 0x40c4dc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esp + 0x2c]
call dword [0x42a1f0]
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov byte [esp + 0x494], bl
je 0x40c506
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov dword [esp + 0x494], 0xffffffff
je 0x40c51f
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, 1
jmp 0x40c593
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov byte [esp + 0x494], 4
je 0x40c53c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x24]
cmp eax, ebx
mov byte [esp + 0x494], 3
je 0x40c552
mov edx, dword [eax]
push eax
call dword [edx + 8]
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esp + 0x2c]
call dword [0x42a1f0]
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov byte [esp + 0x494], bl
je 0x40c578
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov dword [esp + 0x494], 0xffffffff
je 0x40c591
mov edx, dword [eax]
push eax
call dword [edx + 8]
xor eax, eax
mov ecx, dword [esp + 0x48c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x484]
call fcn.00425abd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4