Function at 0x405460
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x406ef8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
mov al, byte [esp + 0x13]
push ebx
push ebp
push esi
mov ebp, ecx
xor esi, esi
push edi
push esi
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], esi
mov byte [esp + 0x28], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [esp + 0x24]
mov dword [esp + 0x144], esi
push ecx
call fcn.00402890
add esp, 4
test al, al
jne 0x4054f8
mov edi, 0x40b0d4
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x28]
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x4054f8
mov edi, dword [esp + 0x28]
mov ecx, ebx
mov edx, ecx
mov esi, 0x40b0d4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov edi, dword [esp + 0x28]
test edi, edi
jne 0x405506
mov edi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x38]
mov eax, ecx
mov esi, edi
mov edi, edx
push str.HELP
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x144], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x144], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
push str.help.html
push ecx
mov byte [esp + 0x14c], 3
call sub.MFC42.DLL_CString::Format
add esp, 8
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x38]
push edx
push eax
lea ecx, [esp + 0x18]
push str._s_s
push ecx
mov byte [esp + 0x154], 4
call sub.MFC42.DLL_CString::Format
mov eax, dword [ebp + 0x18c]
add esp, 0x10
test eax, eax
je 0x405622
mov edx, dword [esp + 0x10]
push 0
push 0
push 0
push 0
push 0
push edx
lea ecx, [ebp + 0xc4]
call sub.MFC42.DLL_CHtmlView::Navigate2
lea ecx, [esp + 0x10]
mov byte [esp + 0x144], 3
call fcn.00406028
lea ecx, [esp + 0x18]
mov byte [esp + 0x144], 2
call fcn.00406028
lea ecx, [esp + 0x14]
mov byte [esp + 0x144], 1
call fcn.00406028
lea ecx, [esp + 0x1c]
mov byte [esp + 0x144], 0
call fcn.00406028
push 1
lea ecx, [esp + 0x28]
mov dword [esp + 0x148], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x405787
push str.README
push str.IDR_README1
push 0
mov dword [ebp + 0x18c], 1
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push 0
push 2
mov ebx, eax
mov eax, dword [esp + 0x1c]
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x34]
push 0
push ecx
push edi
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
jne 0x4056ff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov byte [esp + 0x144], 3
call fcn.00406028
lea ecx, [esp + 0x18]
mov byte [esp + 0x144], 2
call fcn.00406028
lea ecx, [esp + 0x14]
mov byte [esp + 0x144], 1
call fcn.00406028
lea ecx, [esp + 0x1c]
mov byte [esp + 0x144], 0
call fcn.00406028
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x405787
mov al, byte [ecx - 1]
test al, al
je 0x40577d
cmp al, 0xff
je 0x40577d
dec al
mov byte [ecx - 1], al
jmp 0x405787
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x10]
push 0
push 0
push 0
push 0
push 0
push edx
lea ecx, [ebp + 0xc4]
call sub.MFC42.DLL_CHtmlView::Navigate2
lea ecx, [esp + 0x10]
mov byte [esp + 0x144], 3
call fcn.00406028
lea ecx, [esp + 0x18]
mov byte [esp + 0x144], 2
call fcn.00406028
lea ecx, [esp + 0x14]
mov byte [esp + 0x144], 1
call fcn.00406028
lea ecx, [esp + 0x1c]
mov byte [esp + 0x144], 0
call fcn.00406028
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x405787
mov al, byte [ecx - 1]
test al, al
je 0x40577d
cmp al, 0xff
je 0x40577d
dec al
mov byte [ecx - 1], al
jmp 0x405787
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x138
ret