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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xb0
mov eax, dword [ecx + 8]
test eax, eax
jne 0x40fd06
mov ebx, ecx
mov edi, dword [ebp + 8]
mov eax, edi
shr eax, 0x18
movzx ecx, byte [ecx + eax + 0x74]
test ecx, ecx
je 0x40fcd4
mov eax, edi
shr eax, 0x10
movzx eax, al
test eax, eax
je 0x40fcdc
mov edx, dword [ebx + 0x64]
mov esi, dword [edx + ecx*4 - 4]
test esi, esi
je 0x40fce4
lea edx, [eax - 1]
mov ecx, edx
shr ecx, 4
mov ecx, dword [esi + ecx*4 + 0x20]
mov dword [esp + 0xc], edx
and edx, 0xf
test ecx, ecx
lea edx, [edx + edx*4]
lea ecx, [ecx + edx*4]
lea edx, [esi + 0x60]
cmove ecx, edx
cmp dword [ecx + 8], 0
je 0x40fcec
mov dword [esp + 8], esi
movzx edx, di
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov esi, dword [eax + 8]
cmp edx, esi
jge 0x40fd10
mov dword [esp + 0x20], edx
mov eax, dword [esp + 8]
lea ecx, [eax + 0x78]
push dword [esp + 0xc]
call fcn.00418b30
mov ecx, eax
mov eax, dword [eax]
test eax, eax
je 0x40fd28
mov ecx, dword [esp + 0x20]
mov esi, dword [eax + ecx*4]
cmp esi, 0xffffffff
je 0x40fdf5
test esi, esi
je 0x40fd43
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x40fcc6
mov ecx, dword [esi + 8]
mov dword [edx], ecx
mov ecx, esi
add ecx, 0xc
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov eax, dword [esi]
jmp 0x40fd06
push edi
push str.Invalid_package_identifier_when_getting_bag_for_resource_number_0x_08x
jmp 0x40fcf2
push edi
push str.No_type_identifier_when_getting_bag_for_resource_number_0x_08x
jmp 0x40fcf2
push edi
push str.Bad_identifier_when_getting_bag_for_resource_number_0x_08x
jmp 0x40fcf2
push eax
push str.Type_identifier_0x_x_does_not_exist.
push str.ResourceType
push 5
call fcn.00420f20
add esp, 0x10
mov eax, 0xfffffff9
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
push esi
push edx
push str.Entry_identifier_0x_x_is_larger_than_entry_count_0x_x
push str.ResourceType
push 5
call fcn.00420f20
add esp, 0x14
jmp 0x40fd01
mov edi, ecx
push 4
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_calloc
add esp, 8
test eax, eax
je 0x41010a
mov dword [edi], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x3c], eax
mov dword [eax + ecx*4], 0xffffffff
lea edi, [ebx + 0xc]
xorps xmm0, xmm0
movaps xmmword [esp + 0x90], xmm0
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
mov esi, ecx
lea edx, [esp + 0x40]
mov ecx, ebx
push edx
push edi
push esi
push dword [esp + 0x18]
mov esi, dword [esp + 0x18]
push esi
call fcn.004122c0
test eax, eax
jne 0x40fd06
mov edi, dword [esp + 0x80]
xor ecx, ecx
cmp word [edi], 0x10
jb 0x40fe04
mov esi, dword [edi + 8]
mov ecx, dword [edi + 0xc]
test esi, esi
je 0x40fe00
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], esi
mov eax, dword [esp + 8]
lea ecx, [eax + 0xd0]
lea eax, [esp + 0x10]
push eax
call fcn.00412c10
test eax, eax
je 0x41007c
push esi
push str.Failed_resolving_bag_parent_id_0x_08x
push str.ResourceType
push 6
call fcn.00420f20
add esp, 0x10
mov eax, 0x80000000
jmp 0x40fd06
push edi
push str.Attempt_to_retrieve_bag_0x_08x_which_is_invalid_or_in_a_cycle.
jmp 0x40fcf2
mov esi, dword [esp + 8]
mov eax, ecx
shl eax, 4
or eax, 0xc
push eax
mov ebx, ecx
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
test eax, eax
je 0x41010a
mov dword [eax], 0
mov dword [eax + 4], ebx
mov dword [eax + 8], 0
xor ecx, ecx
or ecx, dword [esp + 0x88]
mov dword [eax + 8], ecx
test ebx, ebx
mov dword [esp + 4], eax
je 0x410133
mov dword [esp + 0x14], ebx
mov edx, dword [esp + 0x84]
movzx ecx, word [edi]
sub edi, edx
add edi, ecx
mov dword [esp + 0xc], edx
mov edx, dword [edx + 4]
lea ecx, [edx - 0xc]
cmp edi, ecx
ja 0x410050
add esi, 0xd0
add eax, 0xc
mov dword [esp + 0x18], eax
xor ebx, ebx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 8], esi
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], eax
mov ecx, dword [eax + edi]
mov dword [esp + 0x10], ecx
cmp ecx, 0x10000
jb 0x40feae
mov eax, ecx
and eax, 0xff0000
je 0x40fec6
mov ecx, esi
lea eax, [esp + 0x10]
push eax
call fcn.00412c10
mov ecx, dword [esp + 0x10]
test eax, eax
jne 0x41015f
add dword [esp + 0x28], 1
mov edx, dword [esp + 4]
mov eax, dword [edx]
cmp ebx, eax
mov dword [esp + 0x30], edi
jae 0x40ff32
mov dword [esp + 0x24], eax
mov esi, ebx
shl esi, 4
mov edi, dword [esp + 0x18]
mov edx, dword [edi + esi + 4]
mov al, 1
mov dword [esp + 0x1c], eax
cmp edx, ecx
jae 0x40ff1c
add ebx, 1
add esi, edi
add esi, 0x14
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x40ff36
mov edx, dword [esi]
add ebx, 1
add esi, 0x10
cmp edx, ecx
jb 0x40ff00
add ebx, 0xffffffff
cmp ebx, eax
setb al
mov dword [esp + 0x1c], eax
cmp edx, ecx
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
jne 0x40ff3f
mov edi, dword [esp + 0x18]
jmp 0x40ffaa
xor ecx, ecx
jmp 0x40ff3f
seta cl
mov ebx, eax
mov edx, dword [esp + 4]
mov esi, dword [edx + 4]
cmp eax, esi
jae 0x40ff4c
mov edi, dword [esp + 0x18]
jmp 0x40ff7e
mov dword [esp + 0x1c], ecx
add esi, dword [esp + 0x28]
mov eax, esi
shl eax, 4
or eax, 0xc
push eax
push edx
mov edi, edx
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
je 0x41018b
mov dword [eax + 4], esi
mov edi, eax
add edi, 0xc
mov edx, eax
mov ecx, dword [esp + 0x1c]
test cl, cl
mov dword [esp + 4], edx
je 0x40ffaa
mov eax, ebx
shl eax, 4
lea ecx, [edi + eax]
add eax, edi
add eax, 0x10
mov esi, edx
mov edx, dword [edx]
sub edx, ebx
shl edx, 4
push edx
push ecx
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memmove
add esp, 0xc
add dword [esi], 1
mov eax, dword [esp + 0x8c]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x14]
mov esi, ebx
shl esi, 4
mov dword [edi + esi], eax
mov eax, dword [esp + 0x10]
mov dword [edi + esi + 4], eax
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
movzx eax, word [ecx + edx + 4]
mov word [edi + esi + 8], ax
mov al, byte [ecx + edx + 6]
mov byte [edi + esi + 0xa], al
mov al, byte [ecx + edx + 7]
mov byte [edi + esi + 0xb], al
mov eax, dword [ecx + edx + 8]
mov dword [edi + esi + 0xc], eax
mov dword [esp + 0x18], edi
lea eax, [edi + esi]
add eax, 8
mov ecx, dword [esp + 8]
push eax
call fcn.0040c7c0
test eax, eax
jne 0x410114
add ebx, 1
mov eax, dword [esp + 0x2c]
add eax, 1
cmp eax, dword [esp + 0x14]
je 0x410129
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 0x30]
movzx eax, word [eax + edi + 4]
add edi, eax
add edi, 4
mov eax, dword [esp + 0x84]
mov edx, dword [eax + 4]
lea ecx, [edx - 0xc]
cmp edi, ecx
mov esi, dword [esp + 8]
jbe 0x40fe92
push edx
push edi
push str.ResTable_map_at__d_is_beyond_type_chunk_data__d
push str.ResourceType
push 5
call fcn.00420f20
add esp, 0x14
push dword [esp + 4]
call fcn.00439b84
add esp, 4
mov eax, 0x80000001
jmp 0x40fd06
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
lea eax, [esp + 0x34]
lea edx, [esp + 0x38]
mov ecx, ebx
push eax
push edx
push dword [esp + 0x18]
call fcn.0040fbf0
mov ebx, eax
xor edi, edi
test eax, eax
mov esi, 0
cmovns esi, eax
add esi, dword [esp + 0x14]
mov eax, esi
shl eax, 4
or eax, 0xc
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
test eax, eax
je 0x41010a
test ebx, ebx
jle 0x4100ea
mov edx, eax
add edx, 0xc
mov ecx, ebx
shl ecx, 4
push ecx
push dword [esp + 0x3c]
push edx
mov edi, eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov eax, edi
add esp, 0xc
mov edi, ebx
mov dword [eax], edi
mov dword [eax + 4], esi
mov ecx, dword [esp + 0x34]
mov dword [eax + 8], ecx
mov edi, dword [esp + 0x80]
mov esi, dword [esp + 8]
mov ebx, dword [esp + 0x14]
jmp 0x40fe31
mov eax, 0xfffffff4
jmp 0x40fd06
mov eax, dword [esp + 0x18]
add eax, esi
add eax, 0xc
push dword [eax]
push str.Reference_item_0x_08x__in_bag_could_not_be_resolved.
jmp 0x40fddc
mov eax, dword [esp + 4]
cmp ebx, dword [eax]
jbe 0x410133
mov dword [eax], ebx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 4]
mov dword [esi + eax*4], edi
test edx, edx
je 0x410151
mov eax, dword [edi + 8]
mov dword [edx], eax
mov eax, edi
add eax, 0xc
mov dword [ecx], eax
mov eax, dword [edi]
jmp 0x40fd06
push ecx
push edi
push str.Failed_resolving_ResTable_map_name_at__d_with_ident_0x_08x
push str.ResourceType
push 6
call fcn.00420f20
add esp, 0x14
push dword [esp + 4]
call fcn.00439b84
add esp, 4
mov eax, 0x80000000
jmp 0x40fd06
push edi
call fcn.00439b84
add esp, 4
mov eax, 0xfffffff4
jmp 0x40fd06