Function at 0x402a10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
mov eax, dword [0x406090]
cmp eax, 4
je 0x402b28
test al, 1
je 0x402a90
mov edi, dword [0x410de8]
test edi, edi
je 0x402a90
mov eax, dword [0x410e60]
test eax, eax
jne 0x402b0e
mov dword [esp + 4], ebx
xor eax, eax
mov ecx, 0x20119
mov dword [esp + 0xc], ecx
lea edi, [ebp - 0x3c]
mov dword [esp + 0x10], edi
mov dword [esp + 8], eax
mov dword [esp], 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
je 0x402c0c
mov eax, dword [0x406090]
lea esi, [esi]
lea edi, [edi]
test al, 2
je 0x402ace
mov eax, dword [0x410e60]
test eax, eax
jne 0x402bf2
mov dword [esp + 4], ebx
xor edx, edx
lea ecx, [ebp - 0x3c]
mov dword [esp + 0x10], ecx
mov eax, 0x20019
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp], 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
je 0x402ae0
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
mov esi, dword [ebp - 0x3c]
mov dword [esp], esi
call fcn.00402800
mov ebx, dword [ebp - 0x3c]
mov dword [esp], ebx
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp + 8], ebx
mov edx, str.64_bit_search:_t_s..._n
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x402a4e
cld
xor eax, eax
lea edx, [ebp - 0x38]
mov edi, edx
mov ecx, 5
rep stosd dword es:[edi], eax
mov eax, 0x400
mov ecx, 0x1e
mov edi, edx
mov dword [esp + 0xc], eax
mov edx, 0xa
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov eax, dword [0x410eb0]
mov dword [esp], eax
call sub.KERNEL32.dll_FindResourceExA
sub esp, 0x10
test eax, eax
je 0x402c47
mov dword [esp + 4], eax
mov edx, dword [0x410eb0]
mov dword [esp], edx
call sub.KERNEL32.dll_LoadResource
sub esp, 8
test eax, eax
je 0x402be0
mov dword [esp], eax
call sub.KERNEL32.dll_LockResource
sub esp, 4
test eax, eax
mov ecx, eax
je 0x402be0
xor edx, edx
nop
lea esi, [esi]
movzx eax, byte [edx + ecx]
mov byte [edx + edi], al
inc edx
test al, al
jne 0x402ba0
mov ecx, dword [0x410df0]
test ecx, ecx
je 0x402be0
mov eax, dword [0x410e60]
test eax, eax
je 0x402be0
mov dword [esp + 0xc], edi
mov ecx, 0x1e
mov edx, str.Resource__d:_t_s_n
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
lea esi, [esi]
mov dword [esp], edi
call sub.msvcrt.dll_atoi
mov dword [0x406090], eax
jmp 0x402a33
mov dword [esp + 8], ebx
mov edi, str.32_bit_search:_t_s..._n
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x402aa1
mov dword [esp + 4], ebx
mov ecx, esi
or ecx, 0x100
mov dword [esp + 8], ecx
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call fcn.00402800
mov edx, dword [ebp - 0x3c]
mov dword [esp], edx
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
test byte [0x410de1], 1
jne 0x402ace
jmp 0x402a7f
mov dword [esp], 0
call sub.KERNEL32.dll_SetLastError
mov byte [ebp - 0x38], 0
sub esp, 4
jmp 0x402be0