Function at 0x402af9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
jmp 0x408160
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
sub esp, 0x110
push ebx
mov ebx, ecx
mov ecx, dword [eax + 8]
mov eax, dword [edx + 8]
push ebp
push esi
cmp ecx, eax
push edi
je 0x408190
pop edi
pop esi
pop ebp
mov eax, 0xfffffc19
pop ebx
add esp, 0x110
ret 8
xor eax, eax
test ecx, ecx
mov dword [esp + 0x10], eax
jle 0x4083c5
jmp 0x4081ab
mov edx, dword [esp + 0x128]
mov eax, dword [esp + 0x10]
cmp eax, ecx
jge 0x4081c2
test eax, eax
jl 0x4081c2
mov ecx, dword [esp + 0x124]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + eax*4]
jmp 0x4081c4
xor ecx, ecx
cmp eax, dword [edx + 8]
jge 0x4081d5
test eax, eax
jl 0x4081d5
mov edx, dword [edx + 4]
mov edi, dword [edx + eax*4]
jmp 0x4081d7
xor edi, edi
mov eax, dword [ecx + 0x204]
test eax, eax
je 0x4081e9
mov eax, dword [ecx + 0x200]
jmp 0x4081ef
lea eax, [ecx + 0x100]
mov ebp, dword [sym.imp.KERNEL32.dll_FindResourceA]
push str.PiMI
push eax
mov eax, dword [ebx + 0x118]
push eax
call ebp
mov esi, eax
mov eax, dword [edi + 0x204]
test eax, eax
je 0x408218
mov edi, dword [edi + 0x200]
jmp 0x40821e
add edi, 0x100
mov ecx, dword [ebx + 0x118]
push str._8BFM
push edi
push ecx
call ebp
test esi, esi
mov ebp, eax
je 0x4083d4
mov edx, dword [ebx + 0x118]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadResource]
push edx
call esi
mov edi, eax
mov eax, dword [ebx + 0x118]
push ebp
push eax
call esi
mov ecx, dword [esp + 0x10]
mov esi, eax
lea edx, [esp + 0x1c]
add edi, 2
lea eax, [ecx + 1]
add esi, 2
push eax
push str.ENTRYPOINT_d
push edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [ebx + 0x118]
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x21c
mov dword [esp + 0x14], eax
call sub.MFC42.DLL_operatornew
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4082b4
mov ecx, 0x87
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
jmp 0x4082b6
xor ebp, ebp
mov ecx, 0x87
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp + 0x104]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
test ebp, ebp
mov dword [ebp + 0x218], ecx
je 0x4083ab
mov eax, dword [ebx + 0x12c]
mov ecx, dword [ebx + 0x128]
lea edx, [eax + 1]
cmp ecx, edx
jne 0x40838f
add eax, dword [ebx + 0x134]
lea eax, [eax*4 + 4]
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebx + 0x12c]
mov esi, dword [ebx + 0x124]
mov edi, eax
mov dword [esp + 0x18], eax
lea ecx, [ecx*4 + 4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x124]
push eax
call sub.MFC42.DLL_operatordelete
mov edx, dword [ebx + 0x134]
mov eax, dword [ebx + 0x12c]
mov ecx, dword [esp + 0x1c]
add esp, 8
add eax, edx
mov dword [ebx + 0x124], ecx
mov dword [ebx + 0x12c], eax
mov eax, dword [ebx + 0x128]
mov ecx, dword [ebx + 0x124]
mov dword [ecx + eax*4], ebp
mov eax, dword [ebx + 0x128]
inc eax
mov dword [ebx + 0x128], eax
mov edx, dword [esp + 0x124]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov ecx, dword [edx + 8]
cmp eax, ecx
jl 0x4081a0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 8
pop edi
pop esi
pop ebp
mov eax, 0xfffffffd
pop ebx
add esp, 0x110
ret 8