Function at 0x4d3470
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x57b0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, dword [0x5a8bfc]
lea eax, [ecx + 0x54]
cmp eax, esi
je 0x4d34a2
push esi
mov ecx, eax
call fcn.004cfc60
mov ecx, dword [0x5a8bfc]
mov eax, dword [esi + 4]
mov dword [ebp - 0x10], eax
cmp eax, 5
ja case.0x4d34b1.4
jmp dword [eax*4 + 0x4d3700]
mov esi, dword [ecx + 0x60]
push ebx
mov eax, dword [esi + 4]
mov esi, dword [esi + 8]
cdq
and edx, 0xf
add eax, edx
sar eax, 4
lea ecx, [eax*2 + 2]
mov eax, esi
imul eax, ecx
push eax
call fcn.004d54ff
mov ebx, eax
mov dword [ebp - 0x14], 0
mov eax, dword [0x5a8bfc]
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], ebx
add esi, 0xffffffff
mov dword [ebp - 0x1c], esi
mov ecx, dword [eax + 0x60]
mov edi, dword [ecx + 0x3c]
js 0x4d360b
xor ecx, ecx
mov eax, dword [eax + 0x60]
mov ebx, dword [eax + 4]
test ebx, ebx
jle 0x4d35e9
mov esi, dword [ebp - 0x18]
jmp 0x4d3520
lea eax, [edx*4]
inc edx
cmp dword [eax + edi], 0
sete ah
cmp ebx, 7
jle 0x4d35a1
cmp dword [edi + edx*4 + 8], 0
setne al
dec al
and al, 0x10
cmp dword [edi + edx*4 + 0xc], 0
setne cl
dec cl
and cl, 8
or al, cl
cmp dword [edi + edx*4 + 0x10], 0
setne cl
dec cl
and cl, 4
or al, cl
cmp dword [edi + edx*4 + 0x14], 0
setne cl
dec cl
and cl, 2
or al, cl
cmp dword [edi + edx*4 + 0x18], 0
sete cl
or al, cl
cmp dword [edi + edx*4 + 4], 0
setne cl
dec cl
and cl, 0x20
or al, cl
cmp dword [edi + edx*4], 0
setne cl
shl ah, 7
dec cl
add edx, 7
and cl, 0x40
or al, cl
or al, ah
add ebx, 0xfffffff8
jmp 0x4d35d4
lea esi, [ebx - 1]
mov al, ah
test esi, esi
jle 0x4d35c8
lea ebx, [ebx]
lea ecx, [edx*4]
inc edx
cmp dword [ecx + edi], 0
sete cl
add al, al
dec esi
or al, cl
test esi, esi
jg 0x4d35b0
mov esi, dword [ebp - 0x18]
mov cl, 8
sub cl, bl
shl al, cl
or ebx, 0xffffffff
mov ecx, dword [ebp - 0x14]
mov byte [ecx + esi], al
inc ecx
mov dword [ebp - 0x14], ecx
test ebx, ebx
jg 0x4d3520
mov esi, dword [ebp - 0x1c]
dec esi
lea eax, [ecx + 1]
test cl, 1
mov dword [ebp - 0x1c], esi
cmove eax, ecx
mov ecx, eax
mov eax, dword [0x5a8bfc]
mov dword [ebp - 0x14], ecx
test esi, esi
jns 0x4d3507
mov ebx, dword [ebp - 0x18]
mov eax, dword [eax + 0x60]
push ebx
push 1
push 1
push dword [eax + 8]
push dword [eax + 4]
call dword [0x5a8c10]
mov esi, eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 8], esi
call dword [0x5a8c14]
push eax
push dword [0x5a8bf4]
call dword [0x5a8c90]
push eax
call dword [0x5a8c30]
push esi
call dword [0x5a8c30]
push ebx
call fcn.004d54bc
add esp, 4
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d523a
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push dword [ecx + 0x60]
mov ecx, edi
call fcn.004d1fe0
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], 5
mov dword [ebp - 0xc], 0
call dword [0x5a8c14]
push eax
push dword [0x5a8bf4]
call dword [0x5a8c90]
push eax
call dword [0x5a8c30]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d523a
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ecx + 0x5c]
mov dword [ebp - 8], eax
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
call dword [0x5a8c14]
push eax
push dword [0x5a8bf4]
call dword [0x5a8c90]
push eax
call dword [0x5a8c30]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004d523a
mov esp, ebp
pop ebp
ret 4