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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b300d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x4ef52c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x4effc0], 0
je 0x4051b3
mov byte [0x4effc0], 0
call fcn.0046dff5
push 0x4da0e8
push 0x69
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4051b3
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4051b3
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
push ecx
lea ecx, [ebp - 0x2c]
mov edx, esi
push ecx
mov ecx, eax
call fcn.00404070
mov ebx, dword [ebp - 0x2c]
add esp, 8
mov edi, dword [ebp - 0x38]
mov dword [ebp - 0x14], ebx
test al, al
je 0x40524f
mov edx, 0x4f511c
mov ecx, ebx
call fcn.00403e40
mov eax, dword [0x4f5120]
sub eax, dword [0x4f511c]
sar eax, 2
cmp dword [edi], eax
jne 0x40524f
lea ecx, [ebx + 0xc]
mov edx, 0x4f5128
call fcn.00403e40
mov eax, dword [0x4f512c]
sub eax, dword [0x4f5128]
sar eax, 2
cmp dword [edi + 4], eax
jne 0x40524f
lea ecx, [ebx + 0x18]
mov edx, 0x4f5134
call fcn.00403e40
mov eax, dword [0x4f5138]
sub eax, dword [0x4f5134]
sar eax, 2
cmp dword [edi + 8], eax
jne 0x40524f
lea ecx, [ebx + 0x24]
mov edx, 0x4f5140
call fcn.00403e40
mov eax, dword [0x4f5144]
sub eax, dword [0x4f5140]
sar eax, 2
cmp dword [edi + 0xc], eax
jne 0x40524f
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea ecx, [ebx + 0x30]
mov byte [ebp - 4], 2
lea edx, [ebp - 0x20]
call fcn.00403e40
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov esi, dword [ebp - 0x20]
sub ecx, esi
sar ecx, 2
mov dword [ebp - 0x10], eax
cmp dword [edi + 0x10], ecx
jne 0x4051ce
push ecx
push esi
push dword [0x4f5144]
call fcn.00405780
lea ecx, [ebx + 0x3c]
mov edx, 0x4f514c
call fcn.00403e40
mov eax, dword [0x4f5150]
sub eax, dword [0x4f514c]
sar eax, 2
cmp dword [edi + 0x14], eax
jne 0x4051c5
lea ecx, [ebx + 0x48]
mov edx, 0x4f5158
call fcn.00403e40
mov eax, dword [0x4f515c]
sub eax, dword [0x4f5158]
sar eax, 2
cmp dword [edi + 0x18], eax
jne 0x4051c5
lea ecx, [ebx + 0x54]
mov edx, 0x4f5164
call fcn.00403e40
mov eax, dword [0x4f5168]
sub eax, dword [0x4f5164]
sar eax, 2
cmp dword [edi + 0x1c], eax
jne 0x4051c5
lea ecx, [ebx + 0x60]
mov edx, 0x4f5170
call fcn.00403e40
mov eax, dword [0x4f5174]
sub eax, dword [0x4f5170]
sar eax, 2
cmp dword [edi + 0x20], eax
jne 0x4051c5
lea ecx, [ebx + 0x6c]
mov edx, 0x4f517c
call fcn.00403e40
mov eax, dword [0x4f5180]
sub eax, dword [0x4f517c]
sar eax, 2
cmp dword [edi + 0x24], eax
jne 0x4051c5
lea ecx, [ebx + 0x78]
mov edx, 0x4f5188
call fcn.00403e40
mov eax, dword [0x4f518c]
sub eax, dword [0x4f5188]
sar eax, 2
cmp dword [edi + 0x28], eax
jne 0x4051c5
lea ecx, [ebx + 0x84]
mov edx, 0x4f5194
call fcn.00403e40
mov eax, dword [0x4f5198]
sub eax, dword [0x4f5194]
sar eax, 2
cmp dword [edi + 0x2c], eax
jne 0x4051c5
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x4050e1
mov eax, dword [ebp - 0x1c]
cmp esi, eax
je 0x40509c
mov ebx, eax
mov edx, dword [esi]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40508f
lfence
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, ebx
jne 0x405072
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x4050c2
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40531b
push ecx
push esi
call fcn.0048846f
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x30]
mov eax, edi
sub ecx, edi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x405107
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40531b
push ecx
push edi
call fcn.0048846f
add esp, 8
test ebx, ebx
je 0x4051b3
mov edi, dword [ebp - 0x28]
mov esi, ebx
cmp esi, edi
je 0x405170
mov eax, dword [esi]
test eax, eax
je 0x405169
mov ecx, dword [esi + 8]
sub ecx, eax
cmp ecx, 0x1000
jb 0x40514b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40531b
mov eax, edx
push ecx
push eax
call fcn.0048846f
mov dword [esi], 0
add esp, 8
mov dword [esi + 4], 0
mov dword [esi + 8], 0
add esi, 0xc
cmp esi, edi
jne 0x405122
mov ecx, dword [ebp - 0x24]
mov eax, 0x2aaaaaab
sub ecx, ebx
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, ebx
shl ecx, 2
cmp ecx, 0x1000
jb 0x4051a9
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40531b
push ecx
push ebx
call fcn.0048846f
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
test esi, esi
je 0x40524f
cmp esi, eax
je 0x40520a
mov ebx, dword [ebp - 0x10]
nop dword [eax]
mov edx, dword [esi]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4051fd
lfence
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, ebx
jne 0x4051e0
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x405230
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40531b
push ecx
push esi
call fcn.0048846f
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
test edi, edi
je 0x405283
mov ecx, dword [ebp - 0x30]
mov eax, edi
sub ecx, edi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x405279
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40531b
push ecx
push edi
call fcn.0048846f
add esp, 8
test ebx, ebx
je 0x4051b3
mov edi, dword [ebp - 0x28]
mov esi, ebx
cmp esi, edi
je 0x4052de
mov eax, dword [esi]
test eax, eax
je 0x4052d7
mov ecx, dword [esi + 8]
sub ecx, eax
cmp ecx, 0x1000
jb 0x4052b9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40531b
mov eax, edx
push ecx
push eax
call fcn.0048846f
mov dword [esi], 0
add esp, 8
mov dword [esi + 4], 0
mov dword [esi + 8], 0
add esi, 0xc
cmp esi, edi
jne 0x405294
mov ecx, dword [ebp - 0x24]
mov eax, 0x2aaaaaab
sub ecx, ebx
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, ebx
shl ecx, 2
cmp ecx, 0x1000
jb 0x4051a9
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4051a9
call fcn.0048ed7f
int3