Function at 0x478a30
Capabilities:
Check for peb beingdebugged flag
Resolve function by parsing pe exports
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4ed3b6
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x52b360]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52b360]
xor eax, esp
push eax
lea eax, [esp + 0x28c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x29c]
xor ebx, ebx
xor eax, eax
mov word [esp + 0x20], ax
mov eax, edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x478a90
sub eax, edx
sar eax, 1
push eax
push edi
lea esi, [esp + 0x24]
call fcn.00401760
push 4
push 0x50ad00
mov eax, esi
mov dword [esp + 0x29c], ebx
call fcn.004088a0
mov eax, dword [esp + 0x20]
mov ebp, 8
cmp dword [esp + 0x34], ebp
jae 0x478ad2
lea eax, [esp + 0x20]
lea ecx, [esp + 0x54]
push ecx
push eax
call fcn.004cd260
mov esi, eax
add esp, 8
mov dword [esp + 0x18], esi
cmp esi, 0xffffffff
jne 0x478b05
cmp dword [esp + 0x34], ebp
jb 0x478afe
mov edx, dword [esp + 0x20]
push edx
call fcn.004c8f17
add esp, 4
xor eax, eax
jmp 0x478d3f
lea eax, [esp + 0x54]
push eax
push esi
call fcn.004cd390
add esp, 8
cmp eax, ebx
jne 0x478d1e
jmp 0x478b20
mov ecx, 0x50ad0c
lea eax, [esp + 0x78]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x478b56
cmp dx, bx
je 0x478b52
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x478b56
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x478b30
xor eax, eax
jmp 0x478b5b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x478d04
mov ecx, 0x509764
lea eax, [esp + 0x78]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x478b96
cmp dx, bx
je 0x478b92
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x478b96
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x478b70
xor eax, eax
jmp 0x478b9b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x478d04
test byte [esp + 0x54], 0x10
mov eax, edi
je 0x478c3d
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x478bb3
sub eax, edx
sar eax, 1
push eax
push edi
lea esi, [esp + 0x24]
call fcn.00401760
push 1
push 0x4fea60
mov eax, esi
call fcn.004088a0
lea eax, [esp + 0x78]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x478be2
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x7c]
push ecx
lea eax, [esp + 0x24]
call fcn.004088a0
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x34], ebp
jae 0x478c0e
lea eax, [esp + 0x20]
push eax
call fcn.00478a30
add esp, 4
test eax, eax
jne 0x478d04
cmp dword [esp + 0x34], ebp
jb 0x478afe
mov eax, dword [esp + 0x20]
push eax
call fcn.004c8f17
add esp, 4
xor eax, eax
jmp 0x478d3f
xor edx, edx
mov word [esp + 0x3c], dx
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x478c53
sub eax, edx
sar eax, 1
push eax
push edi
lea esi, [esp + 0x40]
call fcn.00401760
push 1
push 0x4fea60
mov eax, esi
mov byte [esp + 0x29c], 1
call fcn.004088a0
lea eax, [esp + 0x78]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x478c90
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x40]
call fcn.004088a0
mov eax, dword [esp + 0x54]
test al, 1
je 0x478cd3
mov ecx, dword [esp + 0x3c]
and eax, 0xfffffffe
mov dword [esp + 0x54], eax
cmp dword [esp + 0x50], ebp
jae 0x478ccb
lea ecx, [esp + 0x3c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x50], ebp
jae 0x478ce1
lea eax, [esp + 0x3c]
push eax
call fcn.004cd230
add esp, 4
mov byte [esp + 0x294], bl
cmp dword [esp + 0x50], ebp
jb 0x478d04
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.004c8f17
add esp, 4
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x54]
push edx
push esi
call fcn.004cd390
add esp, 8
test eax, eax
je 0x478b20
push esi
call fcn.004cd4bf
add esp, 4
cmp dword [esp + 0x34], ebp
jb 0x478d3a
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004c8f17
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x28c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.004c8f08
add esp, 0x284
ret