Function at 0x4e4874
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x124], ebx
test dl, dl
je 0x4e48b2
add esp, 0xfffffff0
call fcn.00403e04
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov eax, dword [ebp - 8]
call fcn.00404d30
mov eax, dword [ebp + 8]
call fcn.00404d30
xor eax, eax
push ebp
push 0x4e4be5
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, ebx
call fcn.00403a70
mov byte [ebp - 0x19], 0
xor eax, eax
mov dword [ebp - 0x14], eax
mov esi, dword [0x4ff714]
push 0xa
push 0x4e4c18
push dword [ebp + 8]
push 0x4e4c28
lea eax, [ebp - 0x124]
mov edx, 3
call fcn.00404c08
mov eax, dword [ebp - 0x124]
call fcn.00404d40
push eax
push esi
call sub.kernel32.dll_FindResourceA
mov edi, eax
test edi, edi
jne 0x4e496b
cmp byte [0x4ff708], 0
je 0x4e496b
mov esi, dword [0x4fde88]
mov esi, dword [esi]
push 0xa
push 0x4e4c18
push dword [ebp + 8]
push 0x4e4c28
lea eax, [ebp - 0x128]
mov edx, 3
call fcn.00404c08
mov eax, dword [ebp - 0x128]
call fcn.00404d40
push eax
push esi
call sub.kernel32.dll_FindResourceA
mov edi, eax
test edi, edi
je 0x4e4a3d
push 0xa
push 0x4e4c18
push dword [ebp + 8]
push 0x4e4c38
lea eax, [ebp - 0x12c]
mov edx, 3
call fcn.00404c08
mov eax, dword [ebp - 0x12c]
call fcn.00404d40
push eax
push esi
call sub.kernel32.dll_FindResourceA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4e4a3d
mov eax, dword [ebp - 0x10]
push eax
push esi
call sub.kernel32.dll_SizeofResource
cmp eax, 4
jb 0x4e4a3d
mov eax, dword [ebp - 0x10]
push eax
push esi
call sub.kernel32.dll_LoadResource
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4e4a3d
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4e4a3d
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jbe 0x4e4a3d
push edi
push esi
call sub.kernel32.dll_SizeofResource
cmp eax, dword [ebp - 0x18]
jb 0x4e4a3d
push edi
push esi
call sub.kernel32.dll_LoadResource
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4e4a3d
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4e4a3d
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
xor ecx, ecx
xor edx, edx
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x10]
mov byte [ebp - 0x19], 1
cmp byte [ebp - 0x19], 0
jne 0x4e4bac
lea eax, [ebx + 0x14]
mov edx, dword [ebp - 8]
call fcn.004048e4
cmp dword [ebx + 0x14], 0
je 0x4e4a6a
mov eax, dword [ebx + 0x14]
call fcn.00404b48
mov edx, dword [ebx + 0x14]
cmp byte [edx + eax - 1], 0x5c
jne 0x4e4a87
push dword [ebx + 0x14]
push 0x4e4c18
push dword [ebp + 8]
push 0x4e4c4c
lea eax, [ebx + 0x14]
mov edx, 4
call fcn.00404c08
mov eax, dword [ebx + 0x14]
call fcn.00409594
test al, al
jne 0x4e4ae5
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x11e]
push eax
push 0x105
push 0
push 0x4e4c18
push dword [ebp + 8]
push 0x4e4c4c
lea eax, [ebp - 0x130]
mov edx, 3
call fcn.00404c08
mov eax, dword [ebp - 0x130]
call fcn.00404d40
push eax
push 0
call sub.kernel32.dll_SearchPathA
mov ecx, eax
lea edx, [ebp - 0x11e]
lea eax, [ebx + 0x14]
call fcn.00404980
mov eax, dword [ebx + 0x14]
call fcn.00409594
test al, al
jne 0x4e4b46
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x11e]
push eax
push 0x105
push 0
push 0x4e4c18
push dword [0x4fdb68]
push 0x4e4c4c
lea eax, [ebp - 0x134]
mov edx, 3
call fcn.00404c08
mov eax, dword [ebp - 0x134]
call fcn.00404d40
push eax
push 0
call sub.kernel32.dll_SearchPathA
mov ecx, eax
lea edx, [ebp - 0x11e]
lea eax, [ebx + 0x14]
call fcn.00404980
mov eax, dword [ebx + 0x14]
call fcn.00409594
test al, al
jne 0x4e4b97
lea eax, [ebp - 0x140]
mov edx, 0x4e4c18
mov ecx, dword [ebp + 8]
call fcn.00404b94
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x13c], eax
mov byte [ebp - 0x138], 0xb
lea eax, [ebp - 0x13c]
push eax
push 0
mov ecx, 0x2a32
mov dl, 1
mov eax, dword [0x4e2610]
call fcn.004e26cc
call fcn.0040426c
mov edx, dword [ebx + 0x14]
mov eax, ebx
call fcn.0041ec20
xor ecx, ecx
xor edx, edx
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x10]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e4bec
lea eax, [ebp - 0x140]
call fcn.00404890
lea eax, [ebp - 0x134]
mov edx, 5
call fcn.004048b4
lea eax, [ebp - 8]
call fcn.00404890
lea eax, [ebp + 8]
call fcn.00404890
ret