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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov ebx, dword [esp + 0x44]
test ebx, ebx
je 0x410bda
mov ebp, dword [esp + 0x48]
cmp ebp, 0xb
ja 0x4109cd
push 0xc
push ebp
push str.Invalid_data._Size__d__is_smaller_than_a_ResTable_header__d_.
push str.ResourceType
push 6
call fcn.00420f20
add esp, 0x14
mov eax, 0x80000000
jmp 0x410bdc
mov esi, ecx
push 0x80
call fcn.004227e0
add esp, 4
mov edi, eax
mov dword [eax], esi
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0x1c], 0x54bd7c
mov dword [eax + 0x20], 0xffffffed
lea ecx, [eax + 0x38]
xorps xmm0, xmm0
movups xmmword [eax + 0x24], xmm0
call fcn.00426d20
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0
mov dword [esp], edi
mov dword [esp + 8], esi
mov eax, dword [esi + 0x54]
mov dword [edi + 0x14], eax
mov eax, dword [esp + 0x58]
mov dword [edi + 0x18], eax
cmp dword [esp + 0x4c], 0
je 0x410a9c
mov esi, dword [esp + 0x50]
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov dword [edi + 0x78], eax
test eax, eax
je 0x410b22
push esi
push dword [esp + 0x50]
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov dword [edi + 0x7c], esi
mov esi, dword [esp + 8]
lea ecx, [esi + 0x4c]
mov eax, esp
push eax
call fcn.0041fc10
cmp byte [esp + 0x5c], 0
je 0x410ad9
push ebp
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov edi, dword [esp]
mov dword [edi + 4], eax
test eax, eax
je 0x410b4a
push ebp
push ebx
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov ebx, dword [edi + 4]
jmp 0x410adc
mov edi, dword [esp]
mov dword [edi + 8], ebx
mov ecx, dword [ebx + 4]
mov dword [edi + 0xc], ecx
movzx eax, word [ebx + 2]
cmp ecx, ebp
ja 0x410b06
cmp ecx, eax
jb 0x410b06
mov edx, ecx
or edx, eax
test dl, 3
je 0x410b5b
push ecx
push eax
push str.Bad_resource_table:_header_size_0x_x_or_total_size_0x_x_is_not_on_an_integer_boundary_n
jmp 0x410b9a
push ebp
push ecx
push eax
push str.Bad_resource_table:_header_size_0x_x_or_total_size_0x_x_is_larger_than_data_size_0x_x_n
push str.ResourceType
push 5
call fcn.00420f20
add esp, 0x18
jmp 0x410ba9
mov ecx, edi
add ecx, 0x1c
call fcn.0040ac20
push edi
call fcn.00422980
add esp, 4
mov eax, dword [esp + 8]
mov dword [eax + 8], 0xfffffff4
mov eax, 0xfffffff4
jmp 0x410bdc
mov dword [esi + 8], 0xfffffff4
mov eax, 0xfffffff4
jmp 0x410bdc
lea eax, [ebx + ecx]
mov dword [edi + 0x10], eax
movzx ebp, word [ebx + 2]
add ebp, ebx
add ecx, ebx
add ecx, 0xfffffff8
cmp ecx, ebp
jae 0x410b74
xor ecx, ecx
jmp 0x410b8c
mov ecx, eax
sub ecx, dword [ebp + 4]
mov dword [esp + 4], 0
cmp ecx, ebp
jae 0x410be6
mov ebx, dword [edi + 8]
mov ecx, dword [esp + 4]
mov eax, dword [ebx + 8]
cmp ecx, eax
jae 0x410bb7
push eax
push ecx
push str.Fewer_package_chunks___d__were_found_than_the__d_declared_in_the_header.
push str.ResourceType
push 5
call fcn.00420f20
add esp, 0x14
mov dword [esi + 8], 0x80000001
mov eax, 0x80000001
jmp 0x410bdc
mov eax, dword [edi + 0x20]
mov dword [esi + 8], eax
test eax, eax
je 0x410bda
push str.No_string_values_found_in_resource_table_
push str.ResourceType
push 5
call fcn.00420f20
add esp, 0xc
mov eax, dword [esi + 8]
jmp 0x410bdc
xor eax, eax
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret 0x20
lea ebx, [ebp + 4]
mov dword [esp + 4], 0
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
sub esp, 0x10
mov eax, dword [esp + 0x30]
mov dword [esp + 8], eax
movsd xmm0, qword [esp + 0x28]
movsd qword [esp], xmm0
mov dword [esp + 0xc], str.ResTable
lea ecx, [esp + 0x34]
mov edx, 8
call fcn.0040ae40
add esp, 0x10
test eax, eax
jne 0x410d52
mov edi, dword [ebx]
movzx eax, word [ebp]
cmp eax, 0x200
je 0x410cbb
cmp ax, 1
jne 0x410cf6
mov ecx, dword [esp]
cmp dword [ecx + 0x20], 0
je 0x410d16
add ecx, 0x1c
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
sub esp, 0x14
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
movsd xmm0, qword [esp + 0x20]
movsd qword [esp], xmm0
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], 0
call fcn.0040a840
test eax, eax
je 0x410d2a
jmp 0x410d52
mov eax, dword [esp]
mov ecx, dword [eax + 8]
mov ecx, dword [ecx + 8]
cmp dword [esp + 4], ecx
jae 0x410d5a
movzx edx, byte [esp + 0x60]
mov ecx, esi
movzx esi, byte [esp + 0x54]
push edx
push esi
push eax
push ebp
call fcn.004115c0
test eax, eax
jne 0x410d74
add dword [esp + 4], 1
mov esi, dword [esp + 8]
jmp 0x410d2a
mov ecx, dword [esp]
mov edx, ebp
sub edx, dword [ecx + 8]
push edx
push eax
push str.Unknown_chunk_type_0x_x_in_table_at__p._n
push str.ResourceType
push 5
call fcn.00420f20
add esp, 0x14
jmp 0x410d2a
push str.Multiple_string_chunks_found_in_resource_table.
push str.ResourceType
push 5
call fcn.00420f20
add esp, 0xc
add ebp, edi
mov edi, dword [esp]
mov eax, dword [edi + 0x10]
lea ecx, [eax - 8]
cmp ecx, ebp
jb 0x410b85
lea ebx, [ebp + 4]
mov ecx, eax
sub ecx, dword [ebp + 4]
cmp ecx, ebp
jae 0x410bf1
jmp 0x410b85
mov dword [esi + 8], eax
jmp 0x410bdc
push ecx
push str.More_package_chunks_were_found_than_the__d_declared_in_the_header.
push str.ResourceType
push 5
call fcn.00420f20
add esp, 0x10
jmp 0x410ba9
mov eax, dword [esp + 8]
mov eax, dword [eax + 8]
jmp 0x410bdc