Function at 0x4048e3
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.004055f9
push 0xa
push 0x7d0
push dword [0x41f044]
call sub.KERNEL32.dll_FindResourceA
mov dword [0x41f77a], eax
push dword [0x41f77a]
push dword [0x41f044]
call sub.KERNEL32.dll_LoadResource
mov dword [0x41f77e], eax
push dword [0x41f77e]
call sub.KERNEL32.dll_LockResource
mov dword [0x41f782], eax
mov ebx, dword [0x41f782]
add ebx, 0x26
sub ebx, 4
mov eax, dword [ebx]
add eax, dword [0x41f782]
mov dword [0x423378], eax
sub ebx, 4
mov eax, dword [ebx]
add eax, dword [0x41f782]
mov dword [0x42334c], eax
sub ebx, 4
mov eax, dword [ebx]
add eax, dword [0x41f782]
mov dword [0x423348], eax
sub ebx, 4
push dword [ebx]
pop dword [0x423d23]
sub ebx, 4
push dword [ebx]
pop dword [0x423258]
sub ebx, 4
mov eax, dword [ebx]
add eax, dword [0x41f782]
mov dword [0x41f766], eax
sub ebx, 4
mov eax, dword [ebx]
add eax, dword [0x41f782]
mov dword [0x41f76e], eax
sub ebx, 4
mov eax, dword [ebx]
add eax, dword [0x41f782]
mov dword [0x41f76a], eax
cmp dword [0x423d23], 0
jbe 0x404d5c
mov eax, dword [0x423d23]
add eax, dword [0x41f782]
push dword [eax + 4]
pop dword [0x423d27]
push eax
mov eax, dword [eax + 8]
cmp eax, 0
jbe 0x4049ef
add eax, dword [0x41f782]
push dword [eax]
pop dword [0x41f859]
add eax, 4
mov dword [0x423350], eax
pop eax
push eax
mov eax, dword [eax + 0xc]
cmp eax, 0
jbe 0x404a0f
add eax, dword [0x41f782]
push dword [eax]
pop dword [0x420976]
add eax, 4
mov dword [0x420972], eax
pop eax
push eax
mov eax, dword [eax + 0x10]
mov dword [0x41f537], eax
add eax, dword [0x41f782]
mov dword [0x41f53b], eax
pop eax
push eax
mov eax, dword [eax + 0x14]
mov dword [0x42337c], eax
add eax, dword [0x41f782]
mov dword [0x423380], eax
pop eax
cmp dword [0x42337c], 0
jbe 0x404a80
push eax
push ebx
mov eax, dword [0x423380]
mov ebx, eax
mov eax, dword [eax]
shl eax, 2
add eax, ebx
mov dword [0x41f56b], eax
push dword [eax]
pop dword [0x423384]
shl dword [0x423384], 2
add eax, dword [ebx + 4]
mov dword [0x41f56f], eax
push dword [eax]
pop dword [0x423388]
shl dword [0x423388], 2
pop ebx
pop eax
mov edx, dword [eax]
shl edx, 2
add eax, edx
mov dword [0x423d2b], eax
mov edx, dword [eax]
shl edx, 2
add eax, edx
mov dword [0x423d2f], eax
cmp dword [0x423d27], 1
jb 0x404d5c
mov edx, dword [eax]
shl edx, 2
add eax, edx
mov dword [0x423d37], eax
mov edx, dword [eax]
shl edx, 2
add eax, edx
mov dword [0x423d3b], eax
cmp dword [0x423d27], 2
jb 0x404d5c
push eax
mov eax, dword [eax - 4]
mov dword [ebp - 4], 0xc
mul dword [ebp - 4]
pop ebx
add eax, ebx
mov dword [0x423364], eax
push dword [eax + 4]
pop dword [0x41f6b2]
push dword [eax + 8]
pop dword [0x41f6b6]
push dword [eax + 0xc]
pop dword [0x41f6ba]
push dword [eax + 0x10]
pop dword [0x41f6be]
push dword [eax + 0x14]
pop dword [0x41f7ca]
push dword [eax + 0x18]
pop dword [0x41f7ce]
push dword [eax + 0x1c]
pop dword [0x41f7d2]
push dword [eax + 0x20]
pop dword [0x41f7d6]
push dword [eax + 0x24]
pop dword [0x41f7da]
push dword [eax + 0x28]
pop dword [0x41f78e]
push dword [eax + 0x2c]
pop dword [0x41f861]
push dword [eax + 0x30]
pop dword [0x41f865]
push dword [eax + 0x34]
pop dword [0x41f86d]
push dword [eax + 0x38]
pop dword [0x41f871]
push dword [eax + 0x3c]
pop dword [0x41f7de]
push dword [eax + 0x40]
pop dword [0x423290]
push dword [eax + 0x44]
pop dword [0x423294]
push dword [eax + 0x48]
pop dword [0x423298]
push dword [eax + 0x4c]
pop dword [0x42096a]
push dword [eax + 0x50]
pop dword [0x42096e]
push dword [eax + 0x54]
pop dword [0x41f792]
push dword [eax + 0x58]
pop dword [0x41f796]
push dword [eax + 0x5c]
pop dword [0x41f6f2]
push dword [eax + 0x60]
pop dword [0x41f6f6]
push dword [eax + 0x64]
pop dword [0x41f6fa]
push dword [eax + 0x68]
pop dword [0x41f6fe]
push dword [eax + 0x6c]
pop dword [0x41f702]
push dword [eax + 0x70]
pop dword [0x41f706]
push dword [eax + 0x74]
pop dword [0x41f70a]
push dword [eax + 0x78]
pop dword [0x41f70e]
push dword [eax + 0x7c]
pop dword [0x4232bc]
push dword [eax + 0x80]
pop dword [0x41f4c3]
push dword [eax + 0x84]
pop dword [0x41f4cb]
push dword [eax + 0x88]
pop dword [0x41f4c7]
push dword [eax + 0x8c]
pop dword [0x41f7e2]
push dword [eax + 0x90]
pop dword [0x41f879]
push dword [eax + 0x94]
pop dword [0x41f58f]
push dword [eax + 0x98]
pop dword [0x41f889]
push dword [eax + 0x9c]
pop dword [0x41f88d]
push dword [eax + 0xa0]
pop dword [0x41f79e]
push dword [eax + 0xa4]
pop dword [0x41f891]
push dword [eax + 0xa8]
pop dword [0x41f567]
push dword [eax + 0xac]
pop dword [0x41f8a9]
push dword [eax + 0xb0]
pop dword [0x41f573]
push dword [eax + 0xb4]
pop dword [0x41f79a]
push dword [eax + 0xb8]
pop dword [0x41f5ce]
push dword [eax + 0xbc]
pop dword [0x41f5e6]
push dword [eax + 0xfc]
pop dword [0x4209ff]
push dword [eax + 0x100]
pop dword [0x420a03]
push dword [eax + 0x104]
pop dword [0x41f7e6]
push dword [eax + 0xc0]
pop dword [0x420a37]
push dword [eax + 0x108]
pop dword [0x420a2f]
push dword [eax + 0x10c]
pop dword [0x420a33]
push dword [eax + 0x114]
pop dword [0x420a43]
push dword [eax + 0x118]
pop dword [0x420a2b]
mov edx, dword [eax]
shl edx, 2
add eax, edx
mov dword [0x423368], eax
push dword [eax + 4]
pop dword [0x42336c]
push dword [eax + 8]
pop dword [0x423370]
push dword [eax + 0xc]
pop dword [0x423374]
push dword [eax + 0x10]
pop dword [0x41f6ee]
cmp dword [0x42337c], 0
jbe 0x404d5c
mov edx, dword [eax]
shl edx, 2
add eax, edx
mov dword [0x423d47], eax
mov ebx, dword [0x41f766]
mov eax, dword [ebx]
add eax, dword [0x41f782]
mov ebx, eax
mov eax, dword [ebx]
mov dword [0x41f716], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x41f71a], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x41f71e], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x41f8bd], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x41f722], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x41f726], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x41f72a], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x41f937], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x41f926], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x41f73a], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x41f73e], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x41f772], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x41f776], eax
mov dword [ebp - 0x14], ebx
cmp dword [0x423258], 7
jb 0x404f11
mov ebx, dword [ebp - 0x14]
add ebx, 4
mov eax, dword [ebx]
mov dword [0x41f60e], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x41f622], eax
cmp dword [0x423258], 9
jb 0x404e25
add ebx, 4
mov eax, dword [ebx]
mov dword [0x423358], eax
cmp dword [0x423258], 9
jb 0x404e42
add ebx, 4
mov eax, dword [ebx]
mov dword [0x42335c], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x423360], eax
cmp dword [0x423258], 0xa
jb 0x404e57
cmp dword [0x423258], 0x186a0
jb 0x404e63
cmp dword [0x423258], 0x186a1
jb 0x404e6d
add ebx, 4
mov eax, dword [ebx]
mov dword [0x41f612], eax
cmp dword [0x423258], 0xb
jb 0x404e82
cmp dword [0x423258], 0x186a0
jb 0x404e8e
cmp dword [0x423258], 0x186a2
jb 0x404e98
add ebx, 4
mov eax, dword [ebx]
mov dword [0x41f72e], eax
cmp dword [0x423258], 0xc
jb 0x404ead
cmp dword [0x423258], 0x186a0
jb 0x404eb9
cmp dword [0x423258], 0x186a3
jb 0x404f11
add ebx, 4
push dword [ebx]
pop dword [ebp - 0x14]
add ebx, 4
mov dword [0x42338c], ebx
add ebx, dword [ebp - 0x14]
push dword [ebx]
pop dword [ebp - 0x14]
add ebx, 4
mov dword [0x42339c], ebx
add ebx, dword [ebp - 0x14]
push dword [ebx]
pop dword [ebp - 0x14]
add ebx, 4
mov dword [0x423390], ebx
add ebx, dword [ebp - 0x14]
push dword [ebx]
pop dword [ebp - 0x14]
add ebx, 4
mov dword [0x423394], ebx
add ebx, dword [ebp - 0x14]
push dword [ebx]
pop dword [ebp - 0x14]
add ebx, 4
mov dword [0x423398], ebx
add ebx, dword [ebp - 0x14]
mov ebx, dword [0x41f766]
add ebx, 8
mov eax, dword [ebx]
add eax, dword [0x41f782]
mov dword [0x41f752], eax
add ebx, 4
mov eax, dword [ebx]
add eax, dword [0x41f782]
mov dword [0x41f756], eax
add ebx, 4
mov eax, dword [ebx]
add eax, dword [0x41f782]
mov dword [0x41f75a], eax
add ebx, 4
mov eax, dword [ebx]
add eax, dword [0x41f782]
mov dword [0x41f75e], eax
add ebx, 4
mov eax, dword [ebx]
add eax, dword [0x41f782]
mov dword [0x41f762], eax
cmp dword [0x41f726], 0
jne 0x404f7a
mov dword [0x41f726], 0x28
cmp dword [0x41f72a], 0
jne 0x404f8d
mov dword [0x41f72a], 0x14
cmp dword [0x41f78e], 1
jne 0x405076
mov ebx, dword [0x423378]
sub ebx, 4
add ebx, 4
mov eax, dword [ebx]
mov dword [0x4248e7], eax
add ebx, 4
mov eax, dword [ebx]
add eax, dword [0x423378]
mov dword [0x4248e3], eax
add ebx, 8
add ebx, 4
mov eax, dword [ebx]
mov dword [0x4248df], eax
add ebx, 4
mov eax, dword [ebx]
add eax, dword [0x423378]
mov dword [0x4248db], eax
add ebx, 8
add ebx, 4
mov eax, dword [ebx]
mov dword [0x4248ab], eax
add ebx, 4
mov eax, dword [ebx]
add eax, dword [0x423378]
mov dword [0x4248af], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x4248b3], eax
add ebx, 4
add ebx, 4
mov eax, dword [ebx]
mov dword [0x4248bf], eax
add ebx, 4
mov eax, dword [ebx]
add eax, dword [0x423378]
mov dword [0x4248bb], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x4248b7], eax
add ebx, 4
add ebx, 4
mov eax, dword [ebx]
mov dword [0x4248cb], eax
add ebx, 4
mov eax, dword [ebx]
add eax, dword [0x423378]
mov dword [0x4248c7], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x4248c3], eax
add ebx, 4
add ebx, 4
mov eax, dword [ebx]
mov dword [0x4248d7], eax
add ebx, 4
mov eax, dword [ebx]
add eax, dword [0x423378]
mov dword [0x4248d3], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x4248cf], eax
add eax, dword [0x4248d7]
mov dword [0x41f59f], eax
mov eax, dword [0x41f59f]
add eax, dword [0x41f573]
mov dword [0x41f5a3], eax
add eax, dword [0x41f5ce]
mov dword [0x41f5d6], eax
push dword [0x41f716]
pop dword [ebp - 4]
cmp dword [0x41f722], 1
jne 0x4050b1
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
mov dword [ebp - 4], 4
mul dword [ebp - 4]
mov ebx, eax
add ebx, dword [0x41f762]
mov eax, dword [ebx]
mul dword [ebp - 4]
add eax, dword [0x41f75e]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x41f75e]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x1c]
jge 0x40514a
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 0x405144
mov ebx, dword [ebp - 4]
shl ebx, 2
add ebx, dword [0x41f76e]
mov eax, dword [ebx]
add eax, dword [0x41f782]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x9c]
push eax
push dword [ebp - 0xc]
call fcn.0041b8c0
mov ebx, dword [ebp - 0x10]
mov byte ss:[ebx + ebp - 0x9c], 0
push dword [ebp - 0x18]
lea eax, [ebp - 0x9c]
push eax
call fcn.0041b69b
add dword [ebp - 8], 0x2c
jmp 0x4050dc
pop edx
pop ebx
leave
ret