Function at 0x40a2ed
Capabilities:
Extract resource via kernel32 functions
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff64
push ebx
push edx
call fcn.0040b185
push 0x7d0
push 0x7d0
push dword [0x44115c]
call sub.KERNEL32.dll_FindResourceA
mov dword [0x441a24], eax
push dword [0x441a24]
push dword [0x44115c]
call sub.KERNEL32.dll_LoadResource
mov dword [0x441a28], eax
push dword [0x441a28]
call sub.KERNEL32.dll_LockResource
mov dword [0x441a2c], eax
mov ebx, dword [0x441a2c]
add ebx, 0x26
sub ebx, 4
mov eax, dword [ebx]
add eax, dword [0x441a2c]
mov dword [0x451ae0], eax
sub ebx, 4
mov eax, dword [ebx]
add eax, dword [0x441a2c]
mov dword [0x451ab4], eax
sub ebx, 4
mov eax, dword [ebx]
add eax, dword [0x441a2c]
mov dword [0x451ab0], eax
sub ebx, 4
push dword [ebx]
pop dword [0x452427]
sub ebx, 4
push dword [ebx]
pop dword [0x4519b0]
sub ebx, 4
mov eax, dword [ebx]
add eax, dword [0x441a2c]
mov dword [0x441a10], eax
sub ebx, 4
mov eax, dword [ebx]
add eax, dword [0x441a2c]
mov dword [0x441a18], eax
sub ebx, 4
mov eax, dword [ebx]
add eax, dword [0x441a2c]
mov dword [0x441a14], eax
cmp dword [0x452427], 0
jbe 0x40a88a
mov eax, dword [0x452427]
add eax, dword [0x441a2c]
push dword [eax + 4]
pop dword [0x45242b]
push eax
mov eax, dword [eax + 8]
cmp eax, 0
jbe 0x40a3fc
add eax, dword [0x441a2c]
push dword [eax]
pop dword [0x441b07]
add eax, 4
mov dword [0x451ab8], eax
pop eax
push eax
mov eax, dword [eax + 0xc]
cmp eax, 0
jbe 0x40a41c
add eax, dword [0x441a2c]
push dword [eax]
pop dword [0x442f2d]
add eax, 4
mov dword [0x442f29], eax
pop eax
push eax
mov eax, dword [eax + 0x10]
mov dword [0x441670], eax
add eax, dword [0x441a2c]
mov dword [0x441674], eax
pop eax
push eax
mov eax, dword [eax + 0x14]
mov dword [0x451ae4], eax
add eax, dword [0x441a2c]
mov dword [0x451ae8], eax
pop eax
cmp dword [0x451ae4], 0
jbe 0x40a48d
push eax
push ebx
mov eax, dword [0x451ae8]
mov ebx, eax
mov eax, dword [eax]
shl eax, 2
add eax, ebx
mov dword [0x4416a4], eax
push dword [eax]
pop dword [0x451aec]
shl dword [0x451aec], 2
add eax, dword [ebx + 4]
mov dword [0x4416a8], eax
push dword [eax]
pop dword [0x451af0]
shl dword [0x451af0], 2
pop ebx
pop eax
mov edx, dword [eax]
shl edx, 2
add eax, edx
mov dword [0x45242f], eax
mov edx, dword [eax]
shl edx, 2
add eax, edx
mov dword [0x452433], eax
cmp dword [0x45242b], 1
jb 0x40a88a
mov edx, dword [eax]
shl edx, 2
add eax, edx
mov dword [0x45243b], eax
mov edx, dword [eax]
shl edx, 2
add eax, edx
mov dword [0x45243f], eax
cmp dword [0x45242b], 2
jb 0x40a88a
push eax
mov eax, dword [eax - 4]
mov dword [ebp - 4], 0xc
mul dword [ebp - 4]
pop ebx
add eax, ebx
mov dword [0x451acc], eax
push dword [eax + 4]
pop dword [0x44194c]
push dword [eax + 8]
pop dword [0x441950]
push dword [eax + 0xc]
pop dword [0x441954]
push dword [eax + 0x10]
pop dword [0x441958]
push dword [eax + 0x14]
pop dword [0x441a74]
push dword [eax + 0x18]
pop dword [0x441a78]
push dword [eax + 0x1c]
pop dword [0x441a7c]
push dword [eax + 0x20]
pop dword [0x441a80]
push dword [eax + 0x24]
pop dword [0x441a84]
push dword [eax + 0x28]
pop dword [0x441a38]
push dword [eax + 0x2c]
pop dword [0x441b0f]
push dword [eax + 0x30]
pop dword [0x441b13]
push dword [eax + 0x34]
pop dword [0x441b1b]
push dword [eax + 0x38]
pop dword [0x441b1f]
push dword [eax + 0x3c]
pop dword [0x441a88]
push dword [eax + 0x40]
pop dword [0x4519e8]
push dword [eax + 0x44]
pop dword [0x4519ec]
push dword [eax + 0x48]
pop dword [0x4519f0]
push dword [eax + 0x4c]
pop dword [0x442f21]
push dword [eax + 0x50]
pop dword [0x442f25]
push dword [eax + 0x54]
pop dword [0x441a3c]
push dword [eax + 0x58]
pop dword [0x441a40]
push dword [eax + 0x5c]
pop dword [0x44198c]
push dword [eax + 0x60]
pop dword [0x441990]
push dword [eax + 0x64]
pop dword [0x441994]
push dword [eax + 0x68]
pop dword [0x441998]
push dword [eax + 0x6c]
pop dword [0x44199c]
push dword [eax + 0x70]
pop dword [0x4419a0]
push dword [eax + 0x74]
pop dword [0x4419a4]
push dword [eax + 0x78]
pop dword [0x4419a8]
push dword [eax + 0x7c]
pop dword [0x451a24]
push dword [eax + 0x80]
pop dword [0x4415fc]
push dword [eax + 0x84]
pop dword [0x441604]
push dword [eax + 0x88]
pop dword [0x441600]
push dword [eax + 0x8c]
pop dword [0x441a8c]
push dword [eax + 0x90]
pop dword [0x441b27]
push dword [eax + 0x94]
pop dword [0x4416c8]
push dword [eax + 0x98]
pop dword [0x441b37]
push dword [eax + 0x9c]
pop dword [0x441b3b]
push dword [eax + 0xa0]
pop dword [0x441a48]
push dword [eax + 0xa4]
pop dword [0x441b3f]
push dword [eax + 0xa8]
pop dword [0x4416a0]
push dword [eax + 0xac]
pop dword [0x441b57]
push dword [eax + 0xb0]
pop dword [0x4416ac]
push dword [eax + 0xb4]
pop dword [0x441a44]
push dword [eax + 0xb8]
pop dword [0x44171f]
push dword [eax + 0xbc]
pop dword [0x441737]
push dword [eax + 0xfc]
pop dword [0x443040]
push dword [eax + 0x100]
pop dword [0x443044]
push dword [eax + 0x104]
pop dword [0x441a90]
push dword [eax + 0xc0]
pop dword [0x443078]
push dword [eax + 0x108]
pop dword [0x443070]
push dword [eax + 0x10c]
pop dword [0x443074]
push dword [eax + 0x114]
pop dword [0x443084]
push dword [eax + 0x118]
pop dword [0x44306c]
push dword [eax + 0x11c]
pop dword [0x441918]
push dword [eax + 0x120]
pop dword [0x441924]
push dword [eax + 0x124]
pop dword [0x441930]
push dword [eax + 0x128]
pop dword [0x441934]
push dword [eax + 0x12c]
pop dword [0x4419b0]
push dword [eax + 0x130]
pop dword [0x44308c]
push dword [eax + 0x134]
pop dword [0x443090]
push dword [eax + 0x138]
pop dword [0x44e2b9]
push dword [eax + 0x13c]
pop dword [0x44309c]
push dword [eax + 0x140]
pop dword [0x4430a0]
push dword [eax + 0x144]
pop dword [0x4430a4]
push dword [eax + 0x148]
pop dword [0x4430a8]
push dword [eax + 0x14c]
pop dword [0x4430b0]
push dword [eax + 0x150]
pop dword [0x4430bc]
push dword [eax + 0x154]
pop dword [0x4430c4]
push dword [eax + 0x158]
pop dword [0x44e2c9]
push dword [eax + 0x15c]
pop dword [0x44e2cd]
push dword [eax + 0x160]
pop dword [0x4430f4]
push dword [eax + 0x164]
pop dword [0x443124]
push dword [eax + 0x168]
pop dword [0x44311c]
push dword [eax + 0x16c]
pop dword [0x443114]
mov edx, dword [eax]
shl edx, 2
add eax, edx
mov dword [0x451ad0], eax
push dword [eax + 4]
pop dword [0x451ad4]
push dword [eax + 8]
pop dword [0x451ad8]
push dword [eax + 0xc]
pop dword [0x451adc]
push dword [eax + 0x10]
pop dword [0x441988]
push dword [eax + 0x14]
pop dword [0x442f86]
cmp dword [0x451ae4], 0
jbe 0x40a86e
mov edx, dword [eax]
shl edx, 2
add eax, edx
mov dword [0x45244b], eax
cmp dword [0x4430bc], 0
jbe 0x40a88a
mov edx, dword [eax]
shl edx, 2
add eax, edx
mov dword [0x45158c], eax
add dword [0x45158c], 4
mov ebx, dword [0x441a10]
mov eax, dword [ebx]
add eax, dword [0x441a2c]
mov ebx, eax
mov eax, dword [ebx]
mov dword [0x4419c0], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x4419c4], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x4419c8], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x441b6b], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x4419cc], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x4419d0], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x4419d4], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x441be5], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x441bd4], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x4419e4], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x4419e8], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x441a1c], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x441a20], eax
mov dword [ebp - 0x14], ebx
cmp dword [0x4519b0], 7
jb 0x40aa3f
mov ebx, dword [ebp - 0x14]
add ebx, 4
mov eax, dword [ebx]
mov dword [0x44175f], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x441773], eax
cmp dword [0x4519b0], 9
jb 0x40a953
add ebx, 4
mov eax, dword [ebx]
mov dword [0x451ac0], eax
cmp dword [0x4519b0], 9
jb 0x40a970
add ebx, 4
mov eax, dword [ebx]
mov dword [0x451ac4], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x451ac8], eax
cmp dword [0x4519b0], 0xa
jb 0x40a985
cmp dword [0x4519b0], 0x186a0
jb 0x40a991
cmp dword [0x4519b0], 0x186a1
jb 0x40a99b
add ebx, 4
mov eax, dword [ebx]
mov dword [0x441763], eax
cmp dword [0x4519b0], 0xb
jb 0x40a9b0
cmp dword [0x4519b0], 0x186a0
jb 0x40a9bc
cmp dword [0x4519b0], 0x186a2
jb 0x40a9c6
add ebx, 4
mov eax, dword [ebx]
mov dword [0x4419d8], eax
cmp dword [0x4519b0], 0xc
jb 0x40a9db
cmp dword [0x4519b0], 0x186a0
jb 0x40a9e7
cmp dword [0x4519b0], 0x186a3
jb 0x40aa3f
add ebx, 4
push dword [ebx]
pop dword [ebp - 0x14]
add ebx, 4
mov dword [0x451af4], ebx
add ebx, dword [ebp - 0x14]
push dword [ebx]
pop dword [ebp - 0x14]
add ebx, 4
mov dword [0x451b04], ebx
add ebx, dword [ebp - 0x14]
push dword [ebx]
pop dword [ebp - 0x14]
add ebx, 4
mov dword [0x451af8], ebx
add ebx, dword [ebp - 0x14]
push dword [ebx]
pop dword [ebp - 0x14]
add ebx, 4
mov dword [0x451afc], ebx
add ebx, dword [ebp - 0x14]
push dword [ebx]
pop dword [ebp - 0x14]
add ebx, 4
mov dword [0x451b00], ebx
add ebx, dword [ebp - 0x14]
mov ebx, dword [0x441a10]
add ebx, 8
mov eax, dword [ebx]
add eax, dword [0x441a2c]
mov dword [0x4419fc], eax
add ebx, 4
mov eax, dword [ebx]
add eax, dword [0x441a2c]
mov dword [0x441a00], eax
add ebx, 4
mov eax, dword [ebx]
add eax, dword [0x441a2c]
mov dword [0x441a04], eax
add ebx, 4
mov eax, dword [ebx]
add eax, dword [0x441a2c]
mov dword [0x441a08], eax
add ebx, 4
mov eax, dword [ebx]
add eax, dword [0x441a2c]
mov dword [0x441a0c], eax
cmp dword [0x4419d0], 0
jne 0x40aaa8
mov dword [0x4419d0], 0x28
cmp dword [0x4419d4], 0
jne 0x40aabb
mov dword [0x4419d4], 0x14
cmp dword [0x441a38], 1
jne 0x40aba4
mov ebx, dword [0x451ae0]
sub ebx, 4
add ebx, 4
mov eax, dword [ebx]
mov dword [0x452feb], eax
add ebx, 4
mov eax, dword [ebx]
add eax, dword [0x451ae0]
mov dword [0x452fe7], eax
add ebx, 8
add ebx, 4
mov eax, dword [ebx]
mov dword [0x452fe3], eax
add ebx, 4
mov eax, dword [ebx]
add eax, dword [0x451ae0]
mov dword [0x452fdf], eax
add ebx, 8
add ebx, 4
mov eax, dword [ebx]
mov dword [0x452faf], eax
add ebx, 4
mov eax, dword [ebx]
add eax, dword [0x451ae0]
mov dword [0x452fb3], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x452fb7], eax
add ebx, 4
add ebx, 4
mov eax, dword [ebx]
mov dword [0x452fc3], eax
add ebx, 4
mov eax, dword [ebx]
add eax, dword [0x451ae0]
mov dword [0x452fbf], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x452fbb], eax
add ebx, 4
add ebx, 4
mov eax, dword [ebx]
mov dword [0x452fcf], eax
add ebx, 4
mov eax, dword [ebx]
add eax, dword [0x451ae0]
mov dword [0x452fcb], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x452fc7], eax
add ebx, 4
add ebx, 4
mov eax, dword [ebx]
mov dword [0x452fdb], eax
add ebx, 4
mov eax, dword [ebx]
add eax, dword [0x451ae0]
mov dword [0x452fd7], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x452fd3], eax
add eax, dword [0x452fdb]
mov dword [0x4416f0], eax
mov eax, dword [0x4416f0]
add eax, dword [0x4416ac]
mov dword [0x4416f4], eax
add eax, dword [0x44171f]
mov dword [0x441727], eax
inc eax
mov dword [0x451544], eax
mov dword [0x451548], eax
push dword [0x4419c0]
pop dword [ebp - 4]
cmp dword [0x4419cc], 1
jne 0x40abea
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
mov dword [ebp - 4], 4
mul dword [ebp - 4]
mov ebx, eax
add ebx, dword [0x441a0c]
mov eax, dword [ebx]
mul dword [ebp - 4]
add eax, dword [0x441a08]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x441a08]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x1c]
jge 0x40ac8a
mov eax, dword [eax]
cmp eax, 0x2a
je 0x40ac84
mov ebx, dword [ebp - 8]
add ebx, 0x24
mov dword [ebp - 0x18], ebx
mov eax, dword [ebx]
mov dword [ebp - 4], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], 0
je 0x40ac84
mov ebx, dword [ebp - 4]
shl ebx, 2
add ebx, dword [0x441a18]
mov eax, dword [ebx]
add eax, dword [0x441a2c]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x9c]
push eax
push dword [ebp - 0xc]
call fcn.0042e300
mov ebx, dword [ebp - 0x10]
mov byte ss:[ebx + ebp - 0x9c], 0
push dword [ebp - 0x18]
lea eax, [ebp - 0x9c]
push eax
call fcn.0042e0cb
add dword [ebp - 8], 0x2c
jmp 0x40ac15
call fcn.0040b2df
pop edx
pop ebx
leave
ret