Function at 0x5797a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6172b8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x6aab00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [esi + 0x14], eax
mov edi, dword [esi + 0x18]
mov dword [ebp - 4], 1
mov dword [esi + 0x18], eax
cmp edi, eax
je 0x57980a
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x57980a
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
lea ecx, [edi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x57980a
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
lea eax, [ebp + 0x14]
lea ecx, [esi + 0x24]
push eax
mov dword [esi + 0x10], 2
call fcn.004017f0
mov ecx, dword [ebp + 0x18]
movzx edx, word [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
push ecx
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov edi, eax
test edi, edi
je 0x579982
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push ebx
mov dword [ebp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push ebx
mov dword [esi + 0x1c], ebx
call fcn.0044cdd2
mov edi, eax
add esp, 4
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], edi
call fcn.00579470
push edi
lea ecx, [ebp - 0x14]
push edi
push ecx
call fcn.00417c20
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0x14], eax
mov edi, dword [esi + 0x18]
xor edx, edx
mov byte [ebp - 4], 2
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edx
mov dword [esi + 0x18], ecx
test edi, edi
je 0x5798d1
lea edx, [edi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x5798ce
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
lea ecx, [edi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x5798ce
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
mov edx, dword [ebp - 0x10]
mov byte [ebp - 4], 1
test edx, edx
je 0x579905
mov edi, edx
add edx, 4
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x579905
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
lea ecx, [edi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x579905
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
mov eax, dword [ebp + 0x18]
mov esi, dword [esi + 0x14]
push ebx
push eax
push esi
call fcn.005544a0
mov ecx, dword [ebp + 0xc]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x579943
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x579969
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5799a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5799cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14