Function at 0x40ae70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x490fad
mov eax, dword fs:[0]
push eax
sub esp, 0x1d8
mov eax, dword [0x4e3ec8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x134], esi
mov dword [ebp - 0x13c], edi
mov ebx, 1
mov dword [ebp - 4], ebx
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], edi
mov byte [ebp - 0x12c], 0
mov ecx, esi
mov byte [ebp - 4], 3
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov dword [ebp - 0x13c], ebx
call sub.mfc100.dll_Ordinal_1929
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x138]
push ecx
mov ecx, eax
call fcn.0040a6d0
push str.inplace
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 4
call dword [sym.imp.mfc100.dll_Ordinal_2611]
test eax, eax
jne 0x40af4f
push 0x80
lea edx, [ebp - 0x110]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea ecx, [ebp - 0x110]
push ecx
lea ecx, [ebp - 0x130]
call dword [sym.imp.mfc100.dll_Ordinal_310]
lea edx, [ebp - 0x130]
mov byte [ebp - 4], 5
push edx
jmp 0x40af63
lea eax, [ebp - 0x130]
push eax
call fcn.0040a7e0
add esp, 4
mov byte [ebp - 4], 6
push eax
mov ecx, esi
call dword [sym.imp.mfc100.dll_Ordinal_1313]
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 4
call dword [sym.imp.mfc100.dll_Ordinal_901]
push 0x4b0cd8
mov ecx, esi
call dword [sym.imp.mfc100.dll_Ordinal_1483]
mov ecx, eax
call dword [sym.imp.mfc100.dll_Ordinal_1448]
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40af95
sub ecx, esi
push ecx
push eax
lea ecx, [ebp - 0x12c]
call fcn.0040a9e0
push 0xffffffffffffffff
push edi
lea ecx, [ebp + 0x2c]
push ecx
lea ecx, [ebp - 0x12c]
call fcn.0040aae0
mov eax, dword [ebp + 0xc]
mov ebx, 0x10
cmp dword [ebp + 0x20], ebx
jae 0x40afcd
lea eax, [ebp + 0xc]
movzx edx, word [ebp + 0x28]
push eax
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov eax, dword [ebp - 0x12c]
cmp dword [ebp - 0x118], ebx
jae 0x40b00c
lea eax, [ebp - 0x12c]
push 1
push 0x40
push 0x20
push eax
lea ecx, [ebp - 0x1e4]
call fcn.0040ac40
push 0
push esi
push edi
lea ecx, [ebp - 0x1e4]
mov byte [ebp - 4], 7
call dword [sym.imp.MSVCP100.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___long_long___int64__]
lea ecx, [ebp - 0x1e4]
call fcn.0040abd0
lea ecx, [ebp - 0x184]
mov byte [ebp - 4], 4
call fcn.0040ad40
mov eax, dword [sym.imp.MSVCP100.dll_const_std::ios_base::vftable]
lea ecx, [ebp - 0x184]
push ecx
mov dword [ebp - 0x184], eax
call dword [sym.imp.MSVCP100.dll_private:_static_void___cdecl_std::ios_base::_Ios_base_dtor_class_std::ios_base__]
add esp, 4
lea ecx, [ebp - 0x138]
call dword [sym.imp.mfc100.dll_Ordinal_901]
cmp dword [ebp - 0x118], ebx
jb 0x40b08a
mov edx, dword [ebp - 0x12c]
push edx
call sub.mfc100.dll_Ordinal_1296
add esp, 4
xor edi, edi
mov esi, 0xf
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x11c], edi
mov byte [ebp - 0x12c], 0
cmp dword [ebp + 0x20], ebx
jb 0x40b0b5
mov eax, dword [ebp + 0xc]
push eax
call sub.mfc100.dll_Ordinal_1296
add esp, 4
mov dword [ebp + 0x20], esi
mov dword [ebp + 0x1c], edi
mov byte [ebp + 0xc], 0
cmp dword [ebp + 0x40], ebx
jb 0x40b0d0
mov ecx, dword [ebp + 0x2c]
push ecx
call sub.mfc100.dll_Ordinal_1296
add esp, 4
mov eax, dword [ebp - 0x134]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048e770
mov esp, ebp
pop ebp
ret