Function at 0x4e7ed0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x516e2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push 5
push eax
push ebp
mov dword [esp + 0x1c], ecx
mov dword [ecx + 0x64], ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebp
jne 0x4e7f10
xor eax, eax
jmp 0x4e82da
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x4e7f23
xor eax, eax
jmp 0x4e82da
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
cmp ebx, ebp
jne 0x4e7f37
xor eax, eax
jmp 0x4e82da
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
call fcn.00501a4d
mov ecx, esi
mov esi, ebx
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 4
and ecx, 3
mov dword [esp + 0x18], eax
rep movsb byte es:[edi], byte [esi]
cmp word [eax], 0xffff
jne 0x4e7f79
push eax
call fcn.00501a89
add esp, 4
xor eax, eax
jmp 0x4e82da
mov eax, dword [esp + 0x10]
mov ecx, ebx
add eax, 0xc
add ebx, 0x12
mov edx, dword [ecx]
mov dword [esp + 0x2c], eax
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov edx, dword [ecx + 0xc]
mov dword [eax + 0xc], edx
mov cx, word [ecx + 0x10]
mov word [eax + 0x10], cx
mov ax, word [ebx]
cmp ax, 0xffff
jne 0x4e7fc4
mov edi, dword [esp + 0x10]
add ebx, 2
xor edx, edx
mov dx, word [ebx]
add ebx, 2
mov dword [edi + 0x20], edx
jmp 0x4e7ff3
cmp ax, bp
je 0x4e7fec
push ebx
call fcn.004e7e90
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 4
mov dword [ecx + 0x24], eax
push eax
call esi
mov edi, dword [esp + 0x10]
lea ebx, [ebx + eax*2 + 2]
jmp 0x4e7ff9
mov edi, dword [esp + 0x10]
add ebx, 2
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ax, word [ebx]
cmp ax, 0xffff
jne 0x4e82ef
add ebx, 2
xor edx, edx
mov dx, word [ebx]
mov dword [edi + 0x28], edx
add ebx, 2
cmp word [ebx], bp
je 0x4e802e
push ebx
call fcn.004e7e90
add esp, 4
mov dword [edi + 0x30], eax
push eax
call esi
lea ebx, [ebx + eax*2 + 2]
jmp 0x4e8031
add ebx, 2
mov eax, dword [esp + 0x2c]
test byte [eax], 0x40
je 0x4e8057
mov cx, word [ebx]
add ebx, 2
push ebx
mov word [edi + 0x34], cx
call fcn.004e7e90
add esp, 4
mov dword [edi + 0x38], eax
push eax
call esi
lea ebx, [ebx + eax*2 + 2]
xor esi, esi
mov si, word [edi + 0x14]
lea edx, [esi + esi*2]
shl edx, 3
sub edx, esi
shl edx, 2
push edx
call fcn.00501a4d
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x4e80e7
lea ecx, [esi - 1]
cmp ecx, ebp
jl 0x4e80e9
inc ecx
lea esi, [eax + 0x14]
mov dword [esp + 0x2c], ecx
lea ecx, [esi - 0x14]
xor eax, eax
lea edx, [esi + 0x14]
mov dword [ecx], eax
push edx
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov word [ecx + 0x10], ax
mov word [esi - 2], bp
mov dword [esi], ebp
mov word [esi + 4], bp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ebp
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov ecx, 7
xor eax, eax
lea edi, [esi + 0x2c]
mov dword [esi + 0x24], ebp
mov dword [esi + 0x28], ebp
add esi, 0x5c
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x2c]
dec eax
mov dword [esp + 0x2c], eax
jne 0x4e808c
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
jmp 0x4e80e9
xor eax, eax
cmp word [edi + 0x14], bp
mov dword [esp + 0x24], 0xffffffff
mov dword [edi + 0x3c], eax
mov dword [esp + 0x2c], ebp
jbe 0x4e8247
mov esi, dword [esp + 0x10]
add ebx, 3
and ebx, 0xfffffffc
mov eax, ebp
mov edi, dword [esi + 0x3c]
mov ecx, ebx
add eax, edi
add ebx, 0x13
mov edx, dword [ecx]
and ebx, 0xfffffffe
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov edx, dword [ecx + 0xc]
mov dword [eax + 0xc], edx
mov cx, word [ecx + 0x10]
mov word [eax + 0x10], cx
cmp word [ebx], 0xffff
jne 0x4e8154
mov edx, dword [esi + 0x3c]
mov ax, word [ebx + 2]
add ebx, 2
mov word [ebp + edx + 0x12], ax
add ebx, 2
jmp 0x4e8176
push ebx
call fcn.004e7e90
mov ecx, dword [esi + 0x3c]
add esp, 4
mov dword [ebp + ecx + 0x14], eax
mov edx, dword [esi + 0x3c]
mov eax, dword [ebp + edx + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebx, [ebx + eax*2 + 2]
inc ebx
and ebx, 0xfffffffe
cmp word [ebx], 0xffff
jne 0x4e8195
mov ecx, dword [esi + 0x3c]
mov dx, word [ebx + 2]
add ebx, 2
mov word [ebp + ecx + 0x18], dx
add ebx, 2
jmp 0x4e81b7
push ebx
call fcn.004e7e90
mov ecx, dword [esi + 0x3c]
add esp, 4
mov dword [ebp + ecx + 0x1c], eax
mov edx, dword [esi + 0x3c]
mov eax, dword [ebp + edx + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebx, [ebx + eax*2 + 2]
mov ax, word [ebx]
test ax, ax
je 0x4e821d
mov ecx, dword [esi + 0x3c]
and eax, 0xffff
mov dword [ebp + ecx + 0x20], eax
mov edx, dword [esi + 0x3c]
mov eax, dword [ebp + edx + 0x20]
sub eax, 2
push eax
call fcn.00501a4d
mov ecx, dword [esi + 0x3c]
add ebx, 2
add esp, 4
mov dword [ebp + ecx + 0x24], eax
mov edx, dword [esi + 0x3c]
mov esi, ebx
mov ecx, dword [ebp + edx + 0x20]
mov edi, dword [ebp + edx + 0x24]
lea eax, [ebp + edx]
sub ecx, 2
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov esi, ecx
mov edx, dword [ecx + 0x3c]
mov eax, dword [ebp + edx + 0x20]
lea ebx, [ebx + eax - 2]
jmp 0x4e8220
add ebx, 2
mov ecx, dword [esi + 0x3c]
mov eax, dword [esp + 0x2c]
xor edx, edx
mov dword [ebp + ecx + 0x38], eax
mov dx, word [esi + 0x14]
inc eax
add ebp, 0x5c
cmp eax, edx
mov dword [esp + 0x2c], eax
jl 0x4e8102
mov edi, dword [esp + 0x10]
xor ebp, ebp
mov esi, dword [esp + 0x18]
mov ecx, edi
push esi
and dword [esi], 0xefffffff
call fcn.004e83a0
test eax, eax
push esi
jne 0x4e826a
call fcn.00501a89
add esp, 4
xor eax, eax
jmp 0x4e82da
call fcn.00501a89
xor edx, edx
add esp, 4
mov dx, word [edi + 0x14]
cmp edx, ebp
jle 0x4e82d5
mov esi, dword [edi + 0x3c]
mov ecx, esi
mov ax, word [ecx + 0x12]
cmp ax, 0x80
je 0x4e82a3
cmp ax, 0x81
je 0x4e829d
cmp ax, 0x83
je 0x4e829d
cmp ax, 0x85
jne 0x4e82ac
cmp ax, 0x80
jne 0x4e82b6
mov eax, dword [ecx]
and eax, 0xf
cmp al, 7
jne 0x4e82b6
inc ebp
add ecx, 0x5c
cmp ebp, edx
jl 0x4e8281
jmp 0x4e82d5
lea eax, [ebp + ebp*2]
shl eax, 3
sub eax, ebp
shl eax, 2
mov ebx, dword [esi + eax + 0x3c]
or ebx, 4
mov dword [esi + eax + 0x3c], ebx
mov ecx, dword [edi + 0x3c]
add ecx, eax
mov dword [edi + 0x68], ecx
mov eax, 1
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret 4
cmp ax, bp
je 0x4e8011
push ebx
call fcn.004e7e90
add esp, 4
mov dword [edi + 0x2c], eax
push eax
call esi
lea ebx, [ebx + eax*2 + 2]
jmp 0x4e8014