Function at 0x401210
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
push 0xe
push 0x80
mov dword [esp + 0x20], ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
push edi
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, dword [0x4190b4]
mov esi, eax
xor ebx, ebx
sub edi, ebp
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], ebx
je 0x40128f
xor eax, eax
test ebp, ebp
jbe 0x401282
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0x20c]
add ecx, ebx
mov dl, byte [ecx]
cmp dl, byte [eax + esi]
jne 0x401282
inc eax
inc ecx
cmp eax, ebp
jb 0x401275
cmp eax, ebp
je 0x40128b
inc ebx
cmp ebx, edi
jb 0x401263
mov dword [esp + 0x14], ebx
cmp word [esi + 4], 0
mov dword [esp + 0x1c], 0
jbe 0x40137c
add esi, 0xe
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x10]
xor eax, eax
push 3
mov ax, word [ecx + 4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, dword [0x4190b4]
xor ebp, ebp
sub esi, edi
je 0x40134c
xor ecx, ecx
test edi, edi
jbe 0x401308
mov edx, dword [esp + 0x18]
mov edx, dword [edx + 0x20c]
add edx, ebp
mov bl, byte [edx]
cmp bl, byte [ecx + eax]
jne 0x401308
inc ecx
inc edx
cmp ecx, edi
jb 0x4012fb
cmp ecx, edi
je 0x401313
inc ebp
cmp ebp, esi
jb 0x4012e9
jmp 0x40134c
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
mov ecx, ebx
lea eax, [esi - 8]
push eax
call fcn.004011c0
test eax, eax
je 0x401346
mov ecx, edi
mov edi, dword [ebx + 0x20c]
mov edx, ecx
mov esi, eax
add edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40134c
mov dword [esi], 0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
xor ecx, ecx
mov cx, word [edx + 4]
inc eax
add esi, 0x10
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], esi
jb 0x4012a9
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x14]
mov esi, edx
xor edi, edi
xor ecx, ecx
mov di, word [esi + 4]
mov word [esi + 4], cx
cmp edi, ecx
mov dword [esp + 0x24], edi
jbe 0x4013d8
lea edx, [esi + 6]
mov eax, dword [edx + 8]
test eax, eax
je 0x4013d0
xor eax, eax
mov ax, word [esi + 4]
cmp eax, ecx
je 0x4013cc
shl eax, 4
lea edi, [esi + 6]
add eax, edi
mov edi, edx
mov ebx, dword [edi]
mov dword [eax], ebx
mov ebx, dword [edi + 4]
mov dword [eax + 4], ebx
mov ebx, dword [edi + 8]
mov dword [eax + 8], ebx
mov ebx, dword [esp + 0x14]
mov edi, dword [edi + 0xc]
mov dword [eax + 0xc], edi
mov edi, dword [esp + 0x24]
inc word [esi + 4]
inc ecx
add edx, 0x10
cmp ecx, edi
jb 0x401393
mov eax, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
mov edi, dword [eax + 0x20c]
add edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret