Function at 0x47f4d0
Capabilities:
Enumerate pe sections
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 0x47f5e6
mov ebx, ecx
mov edi, dword [ebp + 8]
mov eax, edi
shr eax, 0x18
movzx ecx, byte [ecx + eax + 0x74]
test ecx, ecx
je 0x47f5b4
mov eax, edi
shr eax, 0x10
movzx eax, al
test eax, eax
je 0x47f5bc
mov edx, dword [ebx + 0x64]
mov esi, dword [edx + ecx*4 - 4]
test esi, esi
je 0x47f5c4
lea edx, [eax - 1]
mov ecx, edx
shr ecx, 4
mov ecx, dword [esi + ecx*4 + 0x20]
mov dword [esp + 8], 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 0x47f5cc
mov dword [esp + 0x10], esi
movzx edx, di
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov esi, dword [eax + 8]
cmp edx, esi
jge 0x47f5f0
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x10]
lea ecx, [eax + 0x78]
push dword [esp + 8]
call fcn.004882b0
mov ecx, eax
mov eax, dword [eax]
test eax, eax
je 0x47f608
mov edx, dword [esp + 0x20]
mov esi, dword [eax + edx*4]
cmp esi, 0xffffffff
je 0x47f6bb
test esi, esi
je 0x47f623
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x47f5a6
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 0x47f5e6
push edi
push str.Invalid_package_identifier_when_getting_bag_for_resource_number_0x_08x
jmp 0x47f5d2
push edi
push str.No_type_identifier_when_getting_bag_for_resource_number_0x_08x
jmp 0x47f5d2
push edi
push str.Bad_identifier_when_getting_bag_for_resource_number_0x_08x
jmp 0x47f5d2
push eax
push str.Type_identifier_0x_x_does_not_exist.
push str.ResourceType
push 5
call fcn.00612760
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.00612760
add esp, 0x14
jmp 0x47f5e1
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 0x47f9c6
mov dword [edi], eax
mov edx, dword [esp + 0x20]
mov dword [esp + 0x38], eax
mov dword [eax + edx*4], 0xffffffff
lea esi, [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
lea edi, [esp + 0x40]
mov ecx, ebx
push edi
push esi
push edx
push dword [esp + 0x14]
mov esi, dword [esp + 0x20]
push esi
call fcn.00481b90
test eax, eax
jne 0x47f5e6
mov eax, dword [esp + 0x80]
xor edi, edi
cmp word [eax], 0x10
jb 0x47f6ca
mov esi, dword [eax + 8]
mov edi, dword [eax + 0xc]
test esi, esi
je 0x47f6c6
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x10]
lea ecx, [eax + 0xd0]
lea eax, [esp + 0x14]
push eax
call fcn.004824c0
test eax, eax
je 0x47f93b
push esi
push str.Failed_resolving_bag_parent_id_0x_08x
jmp 0x47fa0c
push edi
push str.Attempt_to_retrieve_bag_0x_08x_which_is_invalid_or_in_a_cycle.
jmp 0x47f5d2
mov esi, dword [esp + 0x10]
mov eax, edi
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 0x47f9c6
mov dword [eax], 0
mov dword [eax + 4], edi
mov dword [eax + 8], 0
xor ecx, ecx
or ecx, dword [esp + 0x88]
mov dword [eax + 8], ecx
test edi, edi
mov dword [esp + 0xc], eax
je 0x47f90f
add eax, 0xc
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x80]
mov ecx, edi
movzx edi, word [eax]
sub eax, dword [esp + 0x84]
add edi, eax
add esi, 0xd0
xor edx, edx
xor ebx, ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x84]
mov eax, dword [esi + 4]
lea ecx, [eax - 0xc]
cmp edi, ecx
ja 0x47f9d0
mov dword [esp + 0x3c], edx
mov dword [esp + 0x2c], edi
mov eax, dword [esi + edi]
mov dword [esp + 0x14], eax
cmp eax, 0x10000
mov dword [esp + 8], esi
jb 0x47f775
mov ecx, esi
and eax, 0xff0000
je 0x47f78f
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
call fcn.004824c0
mov ecx, dword [esp + 8]
test eax, eax
jne 0x47fa25
inc dword [esp + 0x28]
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
cmp ebx, eax
jae 0x47f7ef
mov edi, dword [esp + 0x14]
mov esi, ebx
shl esi, 4
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + esi + 4]
mov cl, 1
mov dword [esp + 0x1c], ecx
cmp edx, edi
jae 0x47f7da
inc ebx
mov ecx, dword [esp + 0x18]
add esi, ecx
add esi, 0x14
cmp eax, ebx
je 0x47f7f9
mov edx, dword [esi]
inc ebx
add esi, 0x10
cmp edx, edi
jb 0x47f7c2
dec ebx
cmp ebx, eax
setb cl
mov dword [esp + 0x1c], ecx
cmp edx, edi
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 8]
jne 0x47f80a
mov edx, dword [esp + 0x18]
jmp 0x47f87d
mov dword [esp + 0x1c], 0
jmp 0x47f80a
seta cl
mov dword [esp + 0x1c], ecx
mov ebx, eax
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov esi, dword [edx + 4]
cmp eax, esi
jae 0x47f817
mov edi, dword [esp + 0x18]
jmp 0x47f845
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 0x47fa57
mov dword [eax + 4], esi
mov edi, eax
add edi, 0xc
mov edx, eax
mov ecx, dword [esp + 8]
cmp byte [esp + 0x1c], 0
mov dword [esp + 0xc], edx
je 0x47f87b
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
mov edx, edi
mov ecx, dword [esp + 0x14]
add esp, 0xc
inc dword [esi]
jmp 0x47f87d
mov edx, edi
mov esi, ebx
shl esi, 4
mov eax, dword [esp + 0x8c]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x14]
mov dword [edx + esi], eax
mov eax, dword [esp + 0x14]
mov dword [edx + esi + 4], eax
mov edi, dword [esp + 0x2c]
movzx eax, word [ecx + edi + 4]
mov word [edx + esi + 8], ax
movzx eax, byte [ecx + edi + 6]
mov byte [edx + esi + 0xa], al
movzx eax, byte [ecx + edi + 7]
mov byte [edx + esi + 0xb], al
mov eax, dword [ecx + edi + 8]
mov dword [edx + esi + 0xc], eax
mov dword [esp + 0x18], edx
lea eax, [edx + esi]
add eax, 8
mov ecx, dword [esp + 0x10]
push eax
call fcn.0047be60
test eax, eax
jne 0x47f9fc
inc ebx
mov edx, dword [esp + 0x3c]
inc edx
mov eax, dword [esp + 8]
movzx eax, word [eax + edi + 4]
add edi, eax
add edi, 4
cmp edx, dword [esp + 0x24]
jne 0x47f73d
mov edx, dword [esp + 0xc]
cmp ebx, dword [edx]
mov ecx, dword [ebp + 0x10]
mov eax, dword [esp + 0x20]
jbe 0x47f916
mov dword [edx], ebx
jmp 0x47f916
mov ecx, dword [ebp + 0x10]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0xc]
mov dword [edx + eax*4], esi
mov edx, esi
test ecx, ecx
je 0x47f92c
mov eax, dword [edx + 8]
mov dword [ecx], eax
lea eax, [edx + 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [edx]
jmp 0x47f5e6
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
lea eax, [esp + 0x30]
lea edx, [esp + 0x34]
mov ecx, ebx
push eax
push edx
push dword [esp + 0x1c]
call fcn.0047f4d0
mov ecx, edi
xor edi, edi
test eax, eax
mov esi, 0
mov ebx, eax
cmovg esi, eax
mov dword [esp + 0x24], ecx
add esi, ecx
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 0x47f9c6
test ebx, ebx
jle 0x47f9ad
mov edx, eax
add edx, 0xc
mov edi, ebx
mov ecx, ebx
shl ecx, 4
push ecx
push dword [esp + 0x38]
push edx
mov ebx, eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov eax, ebx
add esp, 0xc
mov dword [eax], edi
mov dword [eax + 4], esi
mov ecx, dword [esp + 0x30]
mov dword [eax + 8], ecx
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x24]
jmp 0x47f6f5
mov eax, 0xfffffff4
jmp 0x47f5e6
push eax
push edi
push str.ResTable_map_at__d_is_beyond_type_chunk_data__d
push str.ResourceType
push 5
call fcn.00612760
add esp, 0x14
push dword [esp + 0xc]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov eax, 0x80000001
jmp 0x47f5e6
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.
push str.ResourceType
push 6
call fcn.00612760
add esp, 0x10
mov eax, 0x80000000
jmp 0x47f5e6
push dword [esp + 0x14]
push dword [esp + 0x30]
push str.Failed_resolving_ResTable_map_name_at__d_with_ident_0x_08x
push str.ResourceType
push 6
call fcn.00612760
add esp, 0x14
push dword [esp + 0xc]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov eax, 0x80000000
jmp 0x47f5e6
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov eax, 0xfffffff4
jmp 0x47f5e6