Function at 0x402f70
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 [0x407024]
mov esi, eax
xor ebx, ebx
sub edi, ebp
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], ebx
je 0x402fef
xor eax, eax
test ebp, ebp
jbe 0x402fe2
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0x16c]
add ecx, ebx
mov dl, byte [ecx]
cmp dl, byte [eax + esi]
jne 0x402fe2
inc eax
inc ecx
cmp eax, ebp
jb 0x402fd5
cmp eax, ebp
je 0x402feb
inc ebx
cmp ebx, edi
jb 0x402fc3
mov dword [esp + 0x14], ebx
cmp word [esi + 4], 0
mov dword [esp + 0x1c], 0
jbe 0x4030dc
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 [0x407024]
xor ebp, ebp
sub esi, edi
je 0x4030ac
xor ecx, ecx
test edi, edi
jbe 0x403068
mov edx, dword [esp + 0x18]
mov edx, dword [edx + 0x16c]
add edx, ebp
mov bl, byte [edx]
cmp bl, byte [ecx + eax]
jne 0x403068
inc ecx
inc edx
cmp ecx, edi
jb 0x40305b
cmp ecx, edi
je 0x403073
inc ebp
cmp ebp, esi
jb 0x403049
jmp 0x4030ac
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
mov ecx, ebx
lea eax, [esi - 8]
push eax
call fcn.00402f00
test eax, eax
je 0x4030a6
mov ecx, edi
mov edi, dword [ebx + 0x16c]
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 0x4030ac
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, 0xe
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], esi
jb 0x403009
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 0x403141
lea edx, [esi + 6]
mov eax, dword [edx + 8]
test eax, eax
je 0x403139
xor eax, eax
mov ax, word [esi + 4]
cmp eax, ecx
je 0x403135
lea edi, [eax*8]
sub edi, eax
lea eax, [esi + 6]
lea eax, [eax + edi*2]
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 di, word [edi + 0xc]
mov word [eax + 0xc], di
mov edi, dword [esp + 0x24]
inc word [esi + 4]
inc ecx
add edx, 0xe
cmp ecx, edi
jb 0x4030f3
mov edx, dword [esp + 0x18]
mov ecx, ebp
mov eax, ecx
mov edi, dword [edx + 0x16c]
add edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret