Function at 0x408210
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52d040
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5976b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea edi, [ebx + 0x154]
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
mov dword [ebp - 0x24], edi
call fcn.00403b40
lea ecx, [ebp - 0x1c]
push ecx
xor esi, esi
lea edx, [ebp - 0x10]
push edx
mov ecx, edi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x1c], esi
call fcn.004030e0
test eax, eax
jne 0x408288
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4082da
cmp dword [ebp - 0x1c], esi
jbe 0x4082b5
xor edi, edi
nop
mov ecx, dword [ebp - 0x10]
lea edx, [edi + ecx + 0xc8]
push edx
mov ecx, ebx
call fcn.00406bc0
test eax, eax
jne 0x4082fd
inc esi
add edi, 0x2d0
cmp esi, dword [ebp - 0x1c]
jb 0x408290
mov edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, edi
call fcn.00402ca0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4082e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004170fe
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x408317
push 0x80004005
call fcn.00401550
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
imul esi, esi, 0x2d0
mov ecx, dword [ebp - 0x10]
lea eax, [esi + ecx]
push eax
push eax
lea edx, [ebp - 0x14]
push 0x3f8
push edx
mov byte [ebp - 4], 1
call fcn.00408120
add esp, 0x10
call fcn.00417a8d
mov esi, dword [eax + 0xc]
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebx + 0xd740]
xor eax, eax
cmp esi, eax
je 0x4083a5
push 0x53d98c
push 0xfa0
push esi
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x408395
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x408395
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x408395
movzx eax, word [eax]
mov dword [ebp - 0x20], eax
movzx eax, word [ebp - 0x20]
dec eax
je 0x4083a0
xor eax, eax
jmp 0x4083a5
mov eax, 0x180000
mov ecx, dword [ebp - 0x14]
push eax
push edi
push ecx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
push edx
call fcn.00402ca0
lea ecx, [ebp - 0x14]
call fcn.004035e0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4083e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40840f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret