Function at 0x4e9820
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x5906e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x38]
mov dword [esp + 0x10], esi
test eax, eax
jne 0x4e9a64
cmp edi, 0x60
jge 0x4e9a64
mov eax, dword [0x5f9f88]
mov dword [esp + 0x40], eax
mov dword [esp + 0x30], 0
call fcn.00578d59
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x13c]
test ecx, ecx
je 0x4e9a51
call fcn.00578d59
mov eax, dword [eax + 4]
lea ecx, [edi + 1]
push ecx
mov edx, dword [eax + 0x13c]
lea eax, [esp + 0x44]
add edx, 0x5168
push edx
push 0x5ebd94
push eax
call fcn.00563eb4
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0043ea50
add esp, 0x14
test al, al
jne 0x4e9a13
mov edx, dword [0x5f9f88]
mov dword [esp + 0x38], edx
mov ebx, 1
mov byte [esp + 0x30], bl
call fcn.00578d59
mov eax, dword [eax + 4]
lea ecx, [esp + 0x38]
mov eax, dword [eax + 0x13c]
add eax, 0x5168
push eax
push 0x5ebe94
push ecx
call fcn.00563eb4
add esp, 0xc
lea edx, [esp + 0x38]
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.00568481
call fcn.004416c0
add esp, 8
call fcn.00578d59
mov eax, dword [eax + 4]
lea ecx, [edi + 0x1c3]
and ecx, 0xffff
push 0x5ebe90
mov edx, dword [eax + 0x68]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4e99ab
call fcn.00578d59
mov eax, dword [eax + 4]
push esi
mov eax, dword [eax + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
call fcn.00578d59
mov eax, dword [eax + 4]
push esi
mov ecx, dword [eax + 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4e99ab
lea ecx, [esp + 0x18]
call fcn.0056c8a0
mov edx, dword [esp + 0x40]
push 0
push 0x9002
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 2
call fcn.0056c9b2
test eax, eax
je 0x4e999e
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4e99cf
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], bl
call fcn.0056c8f5
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 0
call fcn.0056870c
lea ecx, [esp + 0x40]
mov dword [esp + 0x30], 0xffffffff
call fcn.0056870c
jmp 0x4e9a9e
mov eax, dword [esp + 0x18]
push 0
push 0
lea ecx, [esp + 0x20]
call dword [eax + 0x28]
mov edx, dword [esp + 0x18]
push ebp
push esi
lea ecx, [esp + 0x20]
call dword [edx + 0x38]
lea ecx, [esp + 0x18]
call fcn.0056cbcd
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], bl
call fcn.0056c8f5
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 0
call fcn.0056870c
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x44]
test eax, eax
lea eax, [edi + 0xf000]
je 0x4e9a25
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x4e9a38
push edi
push ecx
lea eax, [esp + 0x48]
mov ecx, esp
mov dword [esp + 0x44], esp
push eax
jmp 0x4e9a45
push eax
push ecx
lea edx, [esp + 0x48]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call fcn.00568481
mov ecx, esi
call fcn.004ebe80
lea ecx, [esp + 0x40]
mov dword [esp + 0x30], 0xffffffff
call fcn.0056870c
jmp 0x4e9a9e
call fcn.00578d59
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x3c]
add ecx, 0xc0
test edx, edx
lea eax, [ecx + 0x24]
jne 0x4e9a80
push edi
jmp 0x4e9a81
push edx
push 0xffffff
push edi
push eax
call fcn.00503060
push eax
mov ecx, esi
call fcn.00566303
push eax
call fcn.0046a310
add esp, 0xc
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret 0x10