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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x100
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
cmp ebx, 0x100
jae 0x412304
mov eax, ebx
shr eax, 4
mov eax, dword [edx + eax*4 + 0x20]
lea esi, [edx + 0x60]
mov edx, ebx
and edx, 0xf
test eax, eax
lea edx, [edx + edx*4]
lea eax, [eax + edx*4]
cmove eax, esi
cmp dword [eax + 8], 0
jne 0x412311
jmp 0x41289a
lea eax, [edx + 0x60]
cmp dword [eax + 8], 0
je 0x41289a
xorps xmm0, xmm0
movaps xmmword [esp + 0xe0], xmm0
movaps xmmword [esp + 0xd0], xmm0
movaps xmmword [esp + 0xc0], xmm0
movaps xmmword [esp + 0xb0], xmm0
mov edx, dword [eax + 8]
mov esi, 0xfffffff9
mov dword [esp + 0x64], edx
test edx, edx
je 0x41289f
mov dword [esp + 0x60], eax
mov edi, dword [ebp + 0x18]
mov eax, ebx
shl eax, 0x10
add eax, 0x10000
and eax, 0xff0000
mov dword [esp + 0x5c], eax
lea eax, [ecx + 0xc]
mov dword [esp + 0x54], eax
add ecx, 4
mov dword [esp + 0x3c], ecx
mov eax, ebx
shr eax, 4
mov dword [esp + 0x50], eax
mov eax, ebx
and eax, 0xf
mov dword [esp + 0x4c], eax
mov eax, ebx
mov byte [esp + 0xf], bl
mov ecx, dword [ebp + 0x10]
movzx eax, cx
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 8]
add eax, 0xb8
mov dword [esp + 0x38], eax
xor edx, edx
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x1c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x24], 0
jmp 0x41240e
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
shl ecx, 0x18
add ecx, dword [esp + 0x5c]
or ecx, dword [esp + 0x58]
push eax
push dword [ebp + 0x10]
push ecx
push str.For_resource_0x_08x__entry_index__d__is_beyond_type_entryCount__d_
push str.ResourceType
push 5
call fcn.00420f20
mov ecx, dword [ebp + 0x10]
add esp, 0x18
mov edx, dword [esp + 0x44]
add edx, 1
cmp edx, dword [esp + 0x64]
je 0x412839
mov eax, dword [esp + 0x60]
mov eax, dword [eax + 4]
mov dword [esp + 0x44], edx
mov eax, dword [eax + edx*4]
mov dword [esp + 0x34], eax
mov eax, dword [eax + 0x14]
test eax, eax
je 0x412440
cmp word [eax], 0
je 0x412440
mov edx, ecx
movzx ecx, word [eax + 6]
cmp cx, dx
jbe 0x412475
mov ecx, edx
jmp 0x4123fd
mov dword [esp + 0x30], 0
mov edx, ecx
mov dword [esp + 0x20], ebx
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 8]
cmp edx, eax
jae 0x4123d0
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x4124a7
mov ecx, dword [esp + 0x1c]
or ecx, dword [eax + edx*4]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x34]
jmp 0x4124af
sub edx, ecx
cmp dx, word [eax + 4]
jae 0x41249f
movzx ecx, dx
mov ecx, dword [eax + ecx*4 + 8]
cmp ecx, 0xffffffff
je 0x41249f
movzx edx, cx
movzx eax, byte [eax + 2]
add eax, 0xffffffff
mov dword [esp + 0x20], eax
mov al, 1
mov dword [esp + 0x30], eax
jmp 0x41244e
mov ecx, dword [ebp + 0x10]
jmp 0x4123fd
mov dword [esp + 0x1c], 0xffffffff
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
add ecx, 0x18
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], 0
test eax, eax
mov dword [esp + 0x10], edx
je 0x412537
push 0x40
push eax
push dword [esp + 0x5c]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x412555
mov ecx, dword [esp + 0x3c]
call fcn.00426d90
mov eax, dword [esp + 0x38]
cmp ebx, 0xff
ja 0x41250d
mov eax, dword [esp + 0x50]
mov eax, dword [esi + eax*4 + 0x78]
test eax, eax
mov ecx, dword [esp + 0x4c]
lea ecx, [ecx + ecx*2]
lea eax, [eax + ecx*8]
cmove eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x44]
cmp ecx, dword [eax + 0xc]
jae 0x41253c
mov eax, dword [eax + 8]
mov esi, dword [eax + ecx*8]
test esi, esi
je 0x41253c
mov eax, dword [eax + ecx*8 + 4]
test eax, eax
je 0x41282c
mov dword [esp + 0x14], eax
lock add dword [eax + 4], 1
jmp 0x412548
mov esi, dword [ebp + 0x10]
jmp 0x41255c
mov dword [esp + 0x14], 0
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
call fcn.00426da0
mov dword [esp + 0x18], esi
mov esi, dword [ebp + 0x10]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 8]
mov dword [esp + 0x6c], eax
test eax, eax
je 0x4127f0
xor ebx, ebx
jmp 0x41258d
mov esi, dword [ebp + 0x10]
nop word cs:[eax + eax]
add ebx, 1
cmp ebx, dword [esp + 0x6c]
je 0x4127f0
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
mov ecx, dword [eax + ebx*4]
test ecx, ecx
je 0x412580
xorps xmm0, xmm0
movaps xmmword [esp + 0xa0], xmm0
movaps xmmword [esp + 0x90], xmm0
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x70], xmm0
lea eax, [ecx + 0x14]
mov edi, dword [ecx + 0x14]
cmp edi, 0x40
mov esi, ecx
jb 0x412600
movups xmm0, xmmword [eax + 0x30]
movaps xmmword [esp + 0xa0], xmm0
movups xmm0, xmmword [eax + 0x20]
movaps xmmword [esp + 0x90], xmm0
movups xmm0, xmmword [eax]
movups xmm1, xmmword [eax + 0x10]
movaps xmmword [esp + 0x80], xmm1
movaps xmmword [esp + 0x70], xmm0
jmp 0x41262c
push edi
push eax
lea eax, [esp + 0x78]
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
lea eax, [esp + edi]
add eax, 0x70
mov ecx, 0x40
sub ecx, edi
push ecx
push 0
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov edi, dword [ebp + 0x14]
mov dword [esp + 0x70], 0x40
test edi, edi
je 0x412651
lea ecx, [esp + 0x70]
push edi
call fcn.0040e610
mov edx, dword [esp + 0x10]
test al, al
je 0x412573
movzx ecx, word [esi + 2]
add ecx, esi
test byte [esi + 9], 1
mov dword [esp + 0x48], esi
jne 0x412690
cmp edx, dword [esi + 0xc]
mov esi, dword [ebp + 0x10]
jae 0x412580
mov eax, ecx
mov ecx, dword [ecx + edx*4]
cmp ecx, 0xffffffff
je 0x412580
cmp dword [esp + 0x24], 0
jne 0x41270a
jmp 0x41272f
mov eax, dword [esi + 0xc]
mov dword [esp + 0x68], eax
lea eax, [eax*4]
test eax, eax
mov dword [esp + 0x28], ecx
je 0x4126d0
sar eax, 2
mov edx, ecx
mov esi, dword [esp + 0x10]
nop
mov ecx, eax
shr ecx, 1
mov edi, ecx
not edi
add edi, eax
cmp word [edx + ecx*4], si
lea eax, [edx + ecx*4 + 4]
cmovb edx, eax
cmovae edi, ecx
mov eax, edi
test edi, edi
jne 0x4126b0
jmp 0x4126d2
mov edx, ecx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x68]
lea eax, [eax + ecx*4]
cmp edx, eax
je 0x412794
movzx eax, word [edx]
cmp dword [esp + 0x10], eax
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
jne 0x412797
movzx ecx, word [edx + 2]
shl ecx, 2
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x24], 0
je 0x41272f
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x70]
push edi
lea eax, [esp + 0xb4]
push eax
call fcn.0040e170
mov edx, dword [esp + 0x10]
mov esi, dword [ebp + 0x10]
mov ecx, dword [esp + 0x28]
test al, al
je 0x4127a0
movaps xmm0, xmmword [esp + 0xa0]
movaps xmmword [esp + 0xe0], xmm0
movaps xmm0, xmmword [esp + 0x90]
movaps xmmword [esp + 0xd0], xmm0
movaps xmm0, xmmword [esp + 0x70]
movaps xmm1, xmmword [esp + 0x80]
movaps xmmword [esp + 0xc0], xmm1
movaps xmmword [esp + 0xb0], xmm0
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 4]
mov dword [esp + 0x40], eax
test edi, edi
je 0x4127d4
mov eax, dword [esp + 0x48]
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x20]
mov byte [esp + 0xf], al
jmp 0x412580
mov esi, dword [ebp + 0x10]
mov edx, dword [esp + 0x10]
jmp 0x412580
cmp byte [esp + 0x30], 0
je 0x412580
lea ecx, [esp + 0x70]
lea eax, [esp + 0xb0]
push eax
call fcn.0040d6c0
mov edx, dword [esp + 0x10]
mov esi, dword [ebp + 0x10]
mov ecx, dword [esp + 0x28]
test eax, eax
jne 0x412580
jmp 0x41272f
mov eax, dword [esp + 0x48]
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x20]
mov byte [esp + 0xf], al
nop dword [eax + eax]
mov ecx, dword [esp + 0x14]
test ecx, ecx
mov ebx, dword [ebp + 0xc]
je 0x412809
mov eax, 0xffffffff
lock xadd dword [ecx + 4], eax
test eax, eax
je 0x412813
mov edi, dword [ebp + 0x18]
mov ecx, esi
jmp 0x4123fd
mov eax, dword [ecx]
mov esi, ecx
call dword [eax + 8]
mov ecx, esi
call fcn.00439db0
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x18]
jmp 0x4123fd
mov dword [esp + 0x14], 0
jmp 0x412548
mov ebx, dword [esp + 0x24]
test ebx, ebx
mov esi, 0xfffffff9
je 0x41289f
mov edx, dword [esp + 0x2c]
add edx, dword [ebx + 0x10]
mov eax, dword [ebx + 4]
lea ecx, [eax - 8]
cmp edx, ecx
jbe 0x41286f
push eax
push edx
push str.ResTable_entry_at_0x_x_is_beyond_type_chunk_data_0x_x
push str.ResourceType
push 5
call fcn.00420f20
add esp, 0x14
jmp 0x41289a
test dl, 3
je 0x41287c
push edx
push str.ResTable_entry_at_0x_x_is_not_on_an_integer_boundary
jmp 0x41288b
movzx eax, word [ebx + edx]
cmp eax, 7
ja 0x4128ab
push eax
push str.ResTable_entry_size_0x_x_is_too_small
push str.ResourceType
push 5
call fcn.00420f20
add esp, 0x10
mov esi, 0x80000001
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
xor esi, esi
test edi, edi
je 0x41289f
add edx, ebx
mov dword [edi + 0x40], edx
movaps xmm0, xmmword [esp + 0xb0]
movaps xmm1, xmmword [esp + 0xc0]
movups xmmword [edi], xmm0
movups xmmword [edi + 0x10], xmm1
movaps xmm0, xmmword [esp + 0xd0]
movups xmmword [edi + 0x20], xmm0
movaps xmm0, xmmword [esp + 0xe0]
movups xmmword [edi + 0x30], xmm0
mov dword [edi + 0x44], ebx
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x48], eax
mov ebx, dword [esp + 0x40]
mov dword [edi + 0x4c], ebx
lea eax, [ebx + 0xc]
movzx ecx, byte [esp + 0xf]
sub ecx, dword [ebx + 0xc4]
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], ecx
add ebx, 0x68
mov eax, dword [edx + 4]
mov dword [edi + 0x58], ebx
mov dword [edi + 0x5c], eax
jmp 0x41289f