Function at 0x48af40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x595fb2
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x60b4e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov eax, dword [edx + 0xe4]
push dword [edx + 0xb8]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.0048df70
mov ecx, eax
mov dword [ebp + 8], eax
test ecx, ecx
jne 0x48afa8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x18], ebx
mov dword [eax], ebx
mov dword [ebp - 0x1c], ebx
mov eax, dword [ecx]
mov esi, 0x5a13b8
call dword [eax + 0x84]
test eax, eax
je 0x48afe5
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ecx]
call dword [eax + 0x50]
mov dword [ebp - 4], 0
or ebx, 1
jmp 0x48b0ee
call fcn.00526109
test eax, eax
je 0x48b2e8
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 1
test esi, 0xffff0000
jne 0x48b1a0
movzx ebx, si
push ebx
call fcn.00525fba
mov esi, eax
mov dword [ebp - 0x2c], esi
test esi, esi
je 0x48b0de
mov ecx, ebx
shr ecx, 4
push 6
inc ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x48b0de
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x48b0de
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x48b0de
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [eax + esi]
and ebx, 0xf
jbe 0x48b086
cmp esi, ecx
jae 0x48b0de
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ebx, 1
jne 0x48b074
cmp esi, ecx
jae 0x48b0de
movzx edx, word [esi]
test dx, dx
je 0x48b0de
mov eax, dword [edi - 8]
mov ebx, edx
mov ecx, 1
sub eax, ebx
sub ecx, dword [edi - 4]
or eax, ecx
jge 0x48b0b4
push ebx
lea ecx, [ebp - 0x14]
call fcn.00405195
movzx edx, word [esi]
mov edi, dword [ebp - 0x14]
movzx ecx, dx
lea eax, [esi + 2]
push ecx
push eax
push ebx
push edi
call fcn.005651ab
push eax
call fcn.00404b42
add esp, 0x14
cmp ebx, dword [edi - 8]
jg 0x48b2f2
xor eax, eax
mov dword [edi - 0xc], ebx
mov word [edi + ebx*2], ax
mov ebx, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
or ebx, 2
mov eax, dword [eax]
sub eax, 0x10
mov dword [ebp - 0x10], ebx
push eax
call fcn.00405aab
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 4
test bl, 2
je 0x48b12f
and ebx, 0xfffffffd
lea edx, [edi - 0x10]
mov dword [ebp - 0x10], ebx
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48b12f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
test bl, 1
je 0x48b159
mov edx, dword [ebp - 0x30]
and ebx, 0xfffffffe
mov dword [ebp - 0x10], ebx
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48b159
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi - 0xc], 0
je 0x48b236
mov ecx, dword [ebp + 8]
call fcn.0049a870
test eax, eax
mov eax, dword [ebp + 8]
je 0x48b239
cmp dword [eax + 0x118], 0
jne 0x48b239
push esi
call fcn.0049d2e0
add esp, 4
cmp eax, 0xffffffff
jle 0x48b1b7
mov ecx, dword [esi - 0xc]
dec ecx
cmp eax, ecx
jge 0x48b1b7
mov ebx, 1
jmp 0x48b1b9
push 0
push 0x5a13b8
lea ecx, [ebp - 0x14]
call fcn.004052ca
mov edi, dword [ebp - 0x14]
jmp 0x48b0e1
xor ebx, ebx
mov ecx, ebx
inc eax
neg ecx
sbb ecx, ecx
and ecx, eax
jl 0x48b2f2
cmp ecx, dword [esi - 0xc]
jg 0x48b2f2
movzx eax, word [esi + ecx*2]
push dword [ebp + 0xc]
push eax
call fcn.0049cab0
add esp, 8
test eax, eax
je 0x48b233
test ebx, ebx
jne 0x48b226
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x74]
test byte [eax + 0x60], 4
jne 0x48b233
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0xc0]
cmp dword [eax + 0xe0], 0
je 0x48b210
cmp dword [eax + 0xc8], 0
je 0x48b233
cmp dword [ebp - 0x1c], 0
jne 0x48b21b
mov dword [ebp - 0x1c], ebx
jmp 0x48b233
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
jmp 0x48b233
mov ebx, dword [ebp - 0x18]
test ebx, ebx
jne 0x48b27d
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
push dword [eax + 0x40]
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push eax
call fcn.0048df70
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp + 8], ecx
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test ecx, ecx
je 0x48b2bb
test eax, eax
jg 0x48b273
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp - 0x34]
je 0x48b2c7
jmp 0x48afb9
mov eax, dword [ebp + 0x10]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
mov dword [eax], 1
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x48b2a5
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test eax, eax
jg 0x48b2c7
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
test eax, eax
mov ecx, dword [ebp - 0x1c]
cmovne ecx, eax
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.00404c28
push 0x80070057
call fcn.00404c28
int3