Function at 0x479880
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53ed88
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
mov dword [ebp - 0x54], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x64], eax
cmp eax, 0xffffffff
je 0x479b5b
push 0x17
push 0xc7
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
je 0x479b5b
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
lea eax, [esi + 2]
push eax
call fcn.004fc6be
push esi
push edi
push eax
mov dword [ebp - 0x60], eax
call fcn.004fe210
mov edi, dword [ebp - 0x60]
add esp, 0x10
push edi
lea ecx, [ebp - 0x4c]
mov word [edi + esi], bx
call fcn.004c1780
mov dword [ebp - 4], ebx
mov esi, dword [ebp - 0x54]
mov eax, dword [esi + 0x244]
push eax
push str._EXCLUSIONFILELIST
lea ecx, [ebp - 0x4c]
call fcn.004c0a50
mov ecx, dword [0x5bbfe4]
mov dword [ebp - 0x50], ecx
mov byte [ebp - 4], 1
mov edx, dword [esi + 0x234]
sub edx, dword [esi + 0x230]
mov dword [ebp - 0x58], ebx
sar edx, 2
test edx, edx
je 0x479aea
mov eax, dword [esi + 0x230]
mov ecx, dword [ebp - 0x58]
lea eax, [eax + ecx*4]
mov ecx, dword [eax]
xor edx, edx
mov eax, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x479995
sub eax, esi
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00402c70
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4799be
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00403ee0
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x5c]
cmp esi, ebx
je 0x4799e7
cmp dword [esi + 4], ebx
jne 0x4799e2
mov eax, dword [esi]
push eax
call fcn.004fca90
mov dword [esi + 4], eax
mov edx, dword [esi + 4]
jmp 0x4799e9
xor edx, edx
mov eax, edx
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
lea edi, [eax + 1]
jmp 0x479a00
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x479a00
sub eax, edi
push eax
push edx
lea ecx, [ebp - 0x48]
call fcn.00411f80
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x48]
mov edi, 0x10
cmp dword [ebp - 0x34], edi
jae 0x479a27
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.004bfd50
push str.__br__r_n
lea ecx, [ebp - 0x50]
call fcn.004bfd50
mov byte [ebp - 4], 3
cmp dword [ebp - 0x34], edi
jb 0x479a52
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004808a0
add esp, 4
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov byte [ebp - 4], 2
cmp esi, ebx
je 0x479a9e
lea edx, [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebx
jne 0x479a9b
mov eax, dword [esi]
cmp eax, ebx
je 0x479a82
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x479a92
push eax
call fcn.004fedfc
add esp, 4
push esi
call fcn.004808a0
add esp, 4
mov dword [ebp - 0x5c], ebx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 8
jb 0x479ab4
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004808a0
add esp, 4
mov eax, dword [ebp - 0x58]
xor ecx, ecx
mov word [ebp - 0x2c], cx
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx + 0x234]
sub edx, dword [ecx + 0x230]
inc eax
sar edx, 2
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x58], eax
mov esi, ecx
cmp eax, edx
jb 0x479972
mov edi, dword [ebp - 0x60]
mov eax, dword [ebp - 0x50]
push eax
push str._AVHELPLINKS
lea ecx, [ebp - 0x4c]
call fcn.004c0a50
add esi, 0x128
push esi
push str._EXCLUSIONFOLDER
lea ecx, [ebp - 0x4c]
call fcn.004c0a50
mov edx, dword [ebp - 0x4c]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x479b17
push ebx
lea ecx, [ebp - 0x68]
push ecx
sub eax, esi
mov esi, dword [ebp - 0x64]
push eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.004808a0
add esp, 4
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x50]
call fcn.004bfa40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.004bfa40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret 4