Function at 0x49f254
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x154], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x49f59b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
push 2
push 0
mov eax, dword [ebp - 4]
call fcn.004054ec
push eax
call sub.kernel32.dll_LoadLibraryExA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x49f2b3
mov ecx, 0x49f5b8
mov dl, 1
mov eax, dword [0x408c1c]
call fcn.0040e8b8
call fcn.00404a54
xor edx, edx
push ebp
push 0x49f57b
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x49f4f5
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x140]
xor ecx, ecx
mov edx, 0x114
call fcn.00403920
mov eax, dword [ebp - 8]
mov dword [ebp - 0x140], eax
lea eax, [ebp - 0x140]
push eax
push 0x49f208
push 0xe
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_EnumResourceNamesA
mov eax, dword [ebp - 0x13c]
dec eax
je 0x49f30f
dec eax
je 0x49f325
jmp 0x49f33b
push 0xe
mov eax, dword [ebp - 0x138]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindResourceA
mov esi, eax
jmp 0x49f351
push 0xe
lea eax, [ebp - 0x134]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindResourceA
mov esi, eax
jmp 0x49f351
mov ecx, 0x49f5d8
mov dl, 1
mov eax, dword [0x408c1c]
call fcn.0040e8b8
call fcn.00404a54
push esi
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_SizeofResource
mov dword [ebp - 0x14], eax
push esi
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_LoadResource
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 0x18], eax
xor edi, edi
mov eax, dword [ebp - 0x18]
add eax, edi
lea edx, [ebx + 4]
mov ecx, 6
call fcn.00403004
add edi, 6
cmp word [ebx + 4], 0
je 0x49f3a5
mov ecx, 0x49f600
mov dl, 1
mov eax, dword [0x408c1c]
call fcn.0040e8b8
call fcn.00404a54
cmp word [ebx + 6], 1
je 0x49f3c2
mov ecx, 0x49f638
mov dl, 1
mov eax, dword [0x408c1c]
call fcn.0040e8b8
call fcn.00404a54
cmp word [ebx + 8], 0
jne 0x49f3df
mov ecx, 0x49f66c
mov dl, 1
mov eax, dword [0x408c1c]
call fcn.0040e8b8
call fcn.00404a54
movzx eax, word [ebx + 8]
movzx edx, ax
shl edx, 4
add edx, edi
mov dword [ebp - 0x24], edx
movzx eax, ax
dec eax
test eax, eax
jl 0x49f4e7
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
lea eax, [edi + 0xe]
cmp eax, dword [ebp - 0x14]
jle 0x49f423
mov ecx, 0x49f6a0
mov dl, 1
mov eax, dword [0x408c1c]
call fcn.0040e8b8
call fcn.00404a54
mov esi, dword [ebp - 0x28]
add esi, esi
lea edx, [ebx + esi*8 + 0xc]
mov eax, dword [ebp - 0x18]
add eax, edi
mov ecx, 0xe
call fcn.00403004
mov eax, dword [ebp - 0x18]
add eax, edi
lea edx, [ebp - 0x14e]
mov ecx, 0xe
call fcn.00403004
add edi, 0xe
mov eax, dword [ebp - 0x24]
mov dword [ebx + esi*8 + 0x18], eax
push 3
movzx eax, word [ebp - 0x142]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindResourceA
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_SizeofResource
mov esi, eax
cmp esi, dword [ebp - 0x146]
je 0x49f49d
mov ecx, 0x49f6e4
mov dl, 1
mov eax, dword [0x408c1c]
call fcn.0040e8b8
call fcn.00404a54
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_LoadResource
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 0x20], eax
mov eax, esi
call fcn.00402d90
mov edx, dword [ebp - 0x28]
mov dword [ebx + edx*4 + 0x20c], eax
mov eax, dword [ebp - 0x28]
mov edx, dword [ebx + eax*4 + 0x20c]
mov eax, dword [ebp - 0x20]
mov ecx, esi
call fcn.00403004
add dword [ebp - 0x24], esi
inc dword [ebp - 0x28]
dec dword [ebp - 0x2c]
jne 0x49f405
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49f564
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f582
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret