Function at 0x4fa520
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x5acb4b
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x6336a0]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6336a0]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
push 0x5d64ec
push 0xcf
mov edi, ecx
push 0
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0xffffffffffffffff
lea ecx, [edi + 0xa0]
push 0
mov ebp, eax
call fcn.0055d23e
push 0xffffffffffffffff
lea ecx, [edi + 0xb4]
push 0
call fcn.00576d2e
push 0xffffffffffffffff
lea ecx, [edi + 0xc8]
push 0
call fcn.00576d2e
push 3
push ebp
call fcn.00503eb0
xor ebx, ebx
mov ebp, eax
xor eax, eax
add esp, 8
cmp ebp, ebx
mov dword [esp + 0x24], eax
mov word [esp + 0x28], bx
mov dword [esp + 0x250], ebx
jne 0x4fa5f3
mov dword [0x63c044], 0x10000
jmp 0x4fa67e
cmp dword [ebp], 1
je 0x4fa605
mov dword [0x63c044], 0x80000
jmp 0x4fa67e
mov esi, dword [ebp + 4]
mov edi, dword [esi]
or ecx, 0xffffffff
cmp dword [edi + 4], ecx
jg 0x4fa619
mov ecx, 0x10000
jmp 0x4fa678
cmp dword [esi + 4], ecx
je 0x4fa626
call fcn.00503660
or ecx, 0xffffffff
mov eax, dword [esi]
mov dword [esi + 4], ecx
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
mov word [esp + 0x28], bx
mov dword [esp + 0x230], ebx
mov dword [esp + 0x234], ebx
mov dword [esp + 0x238], ebx
mov dword [esp + 0x23c], ebx
mov dword [esp + 0x240], ebx
mov dword [esp + 0x244], ebx
mov dword [esp + 0x248], ebx
mov dword [esp + 0x24c], ebx
mov dword [esp + 0x250], ebx
xor ecx, ecx
mov dword [0x63c044], ecx
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edi
jle 0x4fa820
cmp ebp, ebx
mov dword [esp + 0x24], ebx
mov word [esp + 0x28], bx
mov dword [esp + 0x250], ebx
jne 0x4fa6b0
mov dword [0x63c044], 0x10000
jmp 0x4fa6d5
cmp dword [ebp], 1
je 0x4fa6c2
mov dword [0x63c044], 0x80000
jmp 0x4fa6d5
mov ecx, dword [ebp + 4]
lea edx, [esp + 0x24]
push edx
push edi
call fcn.00503830
mov dword [0x63c044], eax
mov eax, dword [esp + 0x250]
push eax
call fcn.00555176
add esp, 4
cmp ebp, ebx
mov esi, eax
jne 0x4fa6f7
mov dword [0x63c044], 0x10000
jmp 0x4fa720
cmp dword [ebp], 1
je 0x4fa709
mov dword [0x63c044], 0x80000
jmp 0x4fa720
mov ecx, dword [esp + 0x250]
mov ebx, dword [ebp + 4]
push ecx
push esi
push edi
call fcn.00503d90
mov dword [0x63c044], eax
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx + 0xa8]
lea ecx, [ebx + 0xa0]
lea edx, [esp + 0x28]
push edx
push eax
call fcn.0055d51b
mov eax, dword [ebx + 0xbc]
lea ecx, [ebx + 0xb4]
push esi
push eax
call fcn.0055d779
mov edx, dword [esp + 0x250]
mov eax, dword [ebx + 0xd0]
lea ecx, [ebx + 0xc8]
push edx
push eax
call fcn.0055d779
lea eax, [esp + 0x28]
push 0x5df50c
push eax
call fcn.00577334
add esp, 8
test eax, eax
jne 0x4fa80d
mov eax, dword [esp + 0x250]
add eax, 0xfffffffe
cdq
sub eax, edx
mov edi, eax
sar edi, 1
call fcn.00555692
push eax
push edi
add esi, 2
push esi
lea ecx, [esp + 0x20]
call fcn.00401e70
lea ecx, [esp + 0x14]
lea esi, [ebx + 0xe0]
push ecx
mov ecx, esi
mov dword [esp + 0x264], 0
call fcn.00402330
mov dword [esp + 0x260], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4fa7ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebx + 0xe4]
push ecx
push esi
call fcn.004facb0
mov esi, ebx
call fcn.004faf70
push ebx
call fcn.004fb2b0
mov edi, dword [esp + 0x18]
add edi, 1
xor ebx, ebx
cmp edi, dword [esp + 0x20]
mov dword [esp + 0x18], edi
jl 0x4fa690
cmp ebp, ebx
je 0x4fa863
mov eax, dword [ebp]
cmp eax, 2
sete cl
test cl, cl
je 0x4fa863
cmp eax, 2
je 0x4fa842
mov dword [0x63c04c], 0x80000
jmp 0x4fa86a
mov esi, dword [ebp + 4]
call fcn.00506fb0
cmp esi, ebx
mov dword [0x63c04c], eax
je 0x4fa858
call fcn.00507c70
push ebp
call fcn.0055517b
add esp, 4
jmp 0x4fa86a
mov ebx, ebp
call fcn.00503fc0
mov eax, 1
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.00577139
add esp, 0x250
ret