Function at 0x412230
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x603e0d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x69f000]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
call fcn.00498ab8
mov ecx, eax
test ecx, ecx
je 0x4123ba
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
test edx, edx
je 0x412392
test edx, 0xffff0000
jne 0x41237c
movzx edi, dx
push edi
call fcn.00498c8c
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
je 0x41239d
mov ecx, edi
shr ecx, 4
push 6
inc ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x41239d
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x41239d
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
je 0x41239d
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
lea ecx, [eax + esi]
and edi, 0xf
jbe 0x412316
nop word [eax + eax]
cmp esi, ecx
jae 0x41239d
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x412300
cmp esi, ecx
jae 0x41239d
cmp word [esi], 0
je 0x41239d
mov eax, dword [ebx]
mov ecx, 1
movzx edi, word [esi]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or eax, ecx
jge 0x412342
push edi
mov ecx, ebx
call fcn.004127d0
movzx ecx, word [esi]
lea eax, [esi + 2]
push ecx
push eax
push edi
push dword [ebx]
call fcn.005d880e
add esp, 0x10
cmp eax, 0x50
ja case.0x412361.1
movzx eax, byte [eax + 0x4123e8]
jmp dword [eax*4 + 0x4123d8]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x4123c9
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebx]
mov word [eax + edi*2], cx
jmp 0x41239d
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412381
sub ecx, esi
sar ecx, 1
jmp 0x412394
xor ecx, ecx
push ecx
push edx
mov ecx, ebx
call fcn.00412830
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00407ea0
call fcn.00487831
push 0x80070057
call fcn.00407ea0
call fcn.00487817
push 0xc4004123
and eax, dword [ecx]
shl dword [ebx], cl
inc ecx
add bl, dl
and eax, dword [ecx]
add byte [ebx], al
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add dword [ebx], eax
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add al, byte [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add al, byte [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add ah, cl
int3