Function at 0x401d10
Capabilities:
Extract resource via kernel32 functions
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x403860
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
push ebx
push ebp
push esi
push edi
push 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebp, dword [esp + 0xc8]
mov esi, eax
push str.FILEDATA
lea eax, [ebp + 0x104]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0xcc]
push ebp
add ecx, 4
lea edx, [esp + 0x20]
push ecx
push edx
mov ebx, eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
add esp, 0xc
mov eax, dword [eax + 4]
mov esi, 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]
xor edi, edi
cmp eax, edi
mov dword [esp + 0xc0], edi
je 0x401dab
mov esi, eax
mov eax, dword [sym.imp.MSVCP60.dll_const_std::basic_ofstream_char__struct_std::char_traits_char__::vbtable]
lea ecx, [esp + 0x84]
mov dword [esp + 0x2c], eax
call dword [sym.imp.MSVCP60.dll_protected:_void___thiscall_std::ios_base::constructor_void_]
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_ios_char__struct_std::char_traits_char__::vftable]
mov dword [esp + 0x18], 1
mov dword [esp + 0x84], ecx
push edi
push 1
lea edx, [esp + 0x38]
push edi
push edx
lea ecx, [esp + 0x3c]
mov byte [esp + 0xd0], 1
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool__bool_]
lea eax, [esp + 0x30]
lea ecx, [esp + 0x30]
mov dword [esp + 0xc0], 2
mov dword [esp + 0x14], eax
call dword [sym.imp.MSVCP60.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
lea ecx, [esp + 0x7c]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::locale::constructor_void_]
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_filebuf_char__struct_std::char_traits_char__::vftable]
push edi
mov dword [esp + 0x34], ecx
push edi
lea ecx, [esp + 0x38]
mov byte [esp + 0xc8], 4
call dword [sym.imp.MSVCP60.dll_protected:_void___thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::_Init_struct__iobuf___enum_std::basic_filebuf_char__struct_std::char_traits_char__::_Initfl_]
mov edx, dword [esp + 0x2c]
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_ofstream_char__struct_std::char_traits_char__::vftable]
push 0x22
push esi
mov eax, dword [edx + 4]
mov byte [esp + 0xc8], 5
mov dword [esp + eax + 0x34], ecx
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_filebuf_char__struct_std::char_traits_char______thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::open_char_const___int_]
test eax, eax
jne 0x401e74
mov edx, dword [esp + 0x2c]
push edi
push 2
mov eax, dword [edx + 4]
lea ecx, [esp + eax + 0x34]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov ecx, dword [esp + 0x20]
mov byte [esp + 0xc0], 7
cmp ecx, edi
je 0x401e9f
mov al, byte [ecx - 1]
dec ecx
test al, al
je 0x401e96
cmp al, 0xff
je 0x401e96
dec al
mov byte [ecx], al
jmp 0x401e9f
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
lea edx, [esp + 0x2c]
test edx, edx
jne 0x401ec1
xor eax, eax
jmp 0x401ec8
mov eax, dword [ecx + 4]
lea eax, [esp + eax + 0x2c]
mov edx, dword [eax + 4]
and dl, 6
neg dl
sbb edx, edx
not edx
test eax, edx
je 0x401f50
mov eax, dword [esp + 0x10]
mov esi, eax
sub esi, edi
cmp edi, eax
jae 0x401f50
cmp esi, 0x20
jb 0x401f15
lea eax, [edi + ebx]
push 0x20
push eax
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const___int_]
mov ecx, dword [esp + 0xcc]
push 0
push 0x20
push 0x402
mov edx, dword [ecx + 0x14]
add edi, 0x20
mov eax, dword [edx + 0x20]
push eax
jmp 0x401f3c
lea ecx, [edi + ebx]
push esi
push ecx
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const___int_]
mov edx, dword [esp + 0xcc]
push 0
push esi
push 0x402
mov eax, dword [edx + 0x14]
add edi, esi
mov ecx, dword [eax + 0x20]
push ecx
call ebp
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 4]
test byte [esp + edx + 0x30], 1
je 0x401eb5
mov ecx, dword [ecx + 4]
mov edx, dword [sym.imp.MSVCP60.dll_const_std::basic_ofstream_char__struct_std::char_traits_char__::vftable]
lea eax, [esp + 0x84]
mov dword [esp + 0x14], eax
mov dword [esp + ecx + 0x2c], edx
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_filebuf_char__struct_std::char_traits_char__::vftable]
mov ebx, 8
lea eax, [esp + 0x30]
mov dword [esp + 0xc0], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x30], ecx
mov al, byte [esp + 0x78]
mov byte [esp + 0xc0], 0xa
test al, al
je 0x401fa0
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_filebuf_char__struct_std::char_traits_char______thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::close_void_]
mov ecx, dword [esp + 0x74]
test ecx, ecx
je 0x401faf
push 1
call fcn.00402810
lea ecx, [esp + 0x7c]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::locale::destructor_void_]
lea ecx, [esp + 0x30]
mov byte [esp + 0xc0], bl
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
mov edx, dword [esp + 0x2c]
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_ostream_char__struct_std::char_traits_char__::vftable]
mov dword [esp + 0xc0], 0xffffffff
mov eax, dword [edx + 4]
mov dword [esp + eax + 0x2c], ecx
mov edx, dword [sym.imp.MSVCP60.dll_const_std::basic_ios_char__struct_std::char_traits_char__::vftable]
lea ecx, [esp + 0x84]
mov dword [esp + 0x84], edx
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::ios_base::destructor_void_]
mov ecx, dword [esp + 0xb8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xb4
ret