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

Disassembly:
push 0xffffffffffffffff
push 0x411207
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
mov eax, dword [0x416080]
push ebx
push ebp
push esi
xor ebx, ebx
mov dword [esp + 0x70], eax
push edi
mov esi, ecx
xor ebp, ebp
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x88]
mov dword [esp + 0x80], ebp
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x40]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov eax, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov eax, dword [eax]
push 1
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x48]
mov byte [esp + 0x8c], 1
mov byte [esp + 0x1c], 0x5c
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::rfind_char_const___unsigned_int__unsigned_int_const]
push 0x64
push eax
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::erase_unsigned_int__unsigned_int_]
push str..
lea ecx, [esp + 0x40]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
lea ecx, [esp + 0x88]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x5c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov edx, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov eax, dword [edx]
push 1
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x64]
mov byte [esp + 0x8c], 2
mov byte [esp + 0x1c], 0x5c
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::rfind_char_const___unsigned_int__unsigned_int_const]
inc eax
push eax
push ebp
lea ecx, [esp + 0x60]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::erase_unsigned_int__unsigned_int_]
lea edi, [esi + 0x70]
mov ecx, edi
call sub.MFC71.DLL_CFileFind::Close
cmp dword [esp + 0x54], 0x10
mov eax, dword [esp + 0x40]
jae 0x4034e5
lea eax, [esp + 0x40]
mov edx, dword [edi]
push ebp
push eax
mov ecx, edi
call dword [edx + 0x48]
cmp eax, ebp
je 0x403694
mov eax, dword [esi + 0x70]
lea edi, [esi + 0x70]
mov ecx, edi
call dword [eax + 0x4c]
mov edx, dword [edi]
mov ecx, edi
mov dword [esp + 0x20], eax
call dword [edx + 0x44]
test eax, eax
jne 0x40368a
mov eax, dword [edi]
push 0x10
mov ecx, edi
call dword [eax + 0x40]
test eax, eax
jne 0x40368a
mov edx, dword [edi]
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call dword [edx + 0x18]
lea ecx, [esp + 0x14]
mov byte [esp + 0x80], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::MakeLower]
push 4
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Right]
or ebx, 1
push str..jpg
mov ecx, eax
mov byte [esp + 0x84], 4
mov dword [esp + 0x1c], ebx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
je 0x4035a2
push 4
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Right]
or ebx, 2
push 0x41276c
mov ecx, eax
mov dword [esp + 0x1c], ebx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
mov byte [esp + 0x10], 0
jne 0x4035a7
mov byte [esp + 0x10], 1
test bl, 2
je 0x4035bd
and ebx, 0xfffffffd
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], ebx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
test bl, 1
mov dword [esp + 0x80], 3
je 0x4035de
and ebx, 0xfffffffe
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], ebx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov al, byte [esp + 0x10]
test al, al
je 0x40361c
mov ebp, dword [esi + 0xbc]
mov ecx, dword [ebp + 4]
lea edi, [esi + 0xb8]
lea eax, [esp + 0x14]
push eax
push ecx
push ebp
mov ecx, edi
call fcn.00402ba0
push 1
mov ecx, edi
mov ebx, eax
call fcn.00402c30
mov dword [ebp + 4], ebx
mov eax, dword [ebx + 4]
mov dword [eax], ebx
mov ebx, dword [esp + 0x18]
xor ebp, ebp
lea edx, [esp + 0x88]
push edx
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x80], 5
call dword [sym.imp.MFC71.DLL_ATL::CStringT::MakeLower]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
jne 0x40366e
mov eax, dword [esi + 0xbc]
mov dword [esi + 0xc4], eax
mov ecx, dword [eax + 4]
mov dword [esi + 0xc4], ecx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x14]
mov byte [esp + 0x80], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
cmp dword [esp + 0x20], ebp
jne 0x4034f6
lea ecx, [esp + 0x58]
mov byte [esp + 0x80], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x80], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, esi
call fcn.00401d80
push ecx
lea edx, [esp + 0x8c]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov ecx, esi
call fcn.00402830
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x38]
sub edx, edi
mov dword [esi + 0x68], edx
sub eax, dword [esp + 0x30]
mov dword [esi + 0x6c], eax
mov eax, dword [esi + 0x64]
cmp eax, ebp
je 0x403715
push eax
call sub.MFC71.DLL_operator_delete
add esp, 4
mov dword [esi + 0x64], ebp
mov ecx, esi
mov dword [esi + 0x8c], 0x3f800000
mov dword [esi + 0x90], ebp
mov dword [esi + 0x94], ebp
call fcn.00402a70
mov ecx, esi
call fcn.00401df0
mov ecx, dword [esi + 0x20]
push 1
push ebp
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x88]
mov dword [esi + 0xa8], ebp
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x74]
call fcn.004108d1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret 4