Function at 0x427700
Capabilities:
Resolve function by parsing pe exports
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xfc
mov eax, dword [0x4cf06c]
xor eax, esp
mov dword [esp + 0xf8], eax
push ebx
mov ebx, ecx
mov dword [esp + 0x1c], 0
or eax, 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0xdac]
push esi
push edi
mov edi, dword [ebx + 0x694]
mov edx, dword [eax + 0x5c]
lea ecx, [eax + 0x30]
mov esi, ecx
mov dword [esp + 0x18], edx
mov ecx, dword [eax + 0x58]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x1c], ecx
test dword [esi + 0x30], 0x400
mov dword [esp + 0x30], ecx
mov ecx, dword [ebx + 0x690]
mov dword [esp + 0x34], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x38], eax
je 0x427783
mov eax, ecx
and eax, 0x4000
or eax, 0
jne 0x427783
mov dl, 1
jmp 0x427785
xor dl, dl
cmp dword [esp + 0x14], 0xc
mov eax, ecx
mov byte [esp + 0x3c], dl
sete byte [esp + 0x3d]
cmp dword [esp + 0x14], 9
sete byte [esp + 0x3e]
and eax, 4
or eax, 0
jne 0x4277ca
mov eax, dword [esp + 0x18]
cmp eax, dword [ebx + 0x874]
jl 0x4277ca
jg 0x4277c1
mov eax, dword [esp + 0x1c]
cmp eax, dword [ebx + 0x870]
jb 0x4277ca
mov byte [esp + 0x3f], 1
test dl, dl
je 0x4277cf
mov byte [esp + 0x3f], 0
test byte [esi + 0x3c], 8
jne 0x42781f
mov eax, ecx
and eax, 5
or eax, 0
mov eax, 0x84000
jne 0x4277e9
mov eax, 0x80000
xor edx, edx
and eax, ecx
and edx, edi
or eax, edx
jne 0x42781f
and ecx, 0x40000
or ecx, eax
je 0x427815
test dword [ebx + 0x8c8], 0x800
je 0x427815
test dword [ebx + 0x8cc], 0x800
jne 0x42781f
mov dword [esp + 0x20], 0
jmp 0x427827
mov dword [esp + 0x20], 1
cmp dword [esp + 0x14], 4
je 0x427846
cmp dword [esp + 0x18], 0
jl 0x427855
jg 0x427846
mov eax, dword [ebx + 0xdac]
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [eax + 0x18]
jbe 0x427855
mov ecx, 0x2e
lea edi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x40]
mov ecx, ebx
call fcn.00419990
cmp dword [esp + 0x20], 0
je 0x42787a
mov edx, dword [ebx + 0x790]
mov ecx, dword [ebx + 0x834]
or edx, 0x100
call fcn.00457a80
cmp byte [esp + 0x3d], 0
mov ecx, ebx
je 0x4278f8
push dword [ebx + 0x844]
mov eax, dword [ebx + 0xdac]
push dword [ebx + 0x83c]
add eax, 0xa8
push eax
call fcn.00426ef0
mov edi, eax
test edi, edi
je 0x427958
push 0
push dword [ebx + 0x83c]
push dword [ebx + 0x834]
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
mov edi, eax
test edi, edi
jne 0x4278e1
mov ecx, dword [ebx + 0x84c]
push eax
mov eax, dword [ebx + 0x834]
lea eax, [eax + ecx*2]
mov ecx, ebx
push eax
push str.CreateHardLink
call fcn.00419420
mov dword [esi + 0x30], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
jmp 0x427958
lea eax, [esp + 0x30]
push eax
push esi
lea eax, [esp + 0x30]
push eax
call fcn.00427450
xor ecx, ecx
mov edi, eax
mov eax, dword [esp + 0x28]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
setne cl
mov dword [esp + 0x24], ecx
test edi, edi
jne 0x427940
push dword [esi + 4]
mov ecx, ebx
push dword [esi]
call fcn.004189f0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
jmp 0x427950
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
test dword [ebx + 0x698], 0x200
mov edx, dword [ebp + 8]
mov cl, byte [esp + 0x3e]
je 0x4279b5
mov eax, dword [ebx + 0x690]
and eax, 0x2000000
or eax, 0
jne 0x4279b5
test cl, cl
jne 0x4279b5
cmp dword [ebx + 0xff4], eax
jne 0x4279b5
test edi, edi
je 0x427999
cmp byte [esp + 0x3c], al
mov ecx, 2
cmovne eax, ecx
jmp 0x42799e
mov eax, 1
push eax
push esi
push edx
mov ecx, ebx
call fcn.00427100
mov cl, byte [esp + 0x3e]
neg eax
mov edx, dword [ebp + 8]
sbb eax, eax
and edi, eax
test dword [ebx + 0x698], 0x300
je 0x427a04
mov eax, dword [ebx + 0x690]
and eax, 0x2000000
or eax, 0
jne 0x427a04
test cl, cl
jne 0x427a04
cmp dword [ebx + 0xff4], eax
jne 0x427a04
test edi, edi
je 0x4279ef
cmp byte [esp + 0x3c], al
mov ecx, 2
cmovne eax, ecx
jmp 0x4279f4
mov eax, 1
push eax
push esi
push edx
mov ecx, ebx
call fcn.00426f90
neg eax
sbb eax, eax
and edi, eax
cmp dword [esp + 0x14], 4
jne 0x427a19
push dword [ebp + 8]
mov ecx, ebx
push dword [esp + 0x14]
call fcn.00428960
cmp byte [esp + 0x3d], 0
jne 0x427abd
test edi, edi
je 0x427a45
cmp byte [esp + 0x3e], 0
jne 0x427a45
lea eax, [esi + 0x20]
push eax
lea eax, [esi + 0x18]
push eax
lea eax, [esi + 0x10]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [esp + 0x24], 0
je 0x427abd
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x427a71
push 0
push 0
push 0
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x427ab2
test byte [ebx + 0x8cc], 0x40
je 0x427ab7
push dword [esp + 0x10]
call eax
push 0
push 0
push 3
push 0
push 0
push 0x40000000
push dword [ebx + 0x834]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [esi + 0x20]
mov dword [esp + 0x10], eax
push ecx
lea ecx, [esi + 0x18]
push ecx
lea ecx, [esi + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x10]
call eax
test edi, edi
je 0x427b2f
cmp byte [esp + 0x3e], 0
jne 0x427af3
test byte [esi + 0x3c], 2
je 0x427adf
cmp dword [esp + 0x20], 0
jne 0x427adf
push ecx
push 0xffffffffffffffff
mov ecx, ebx
call fcn.00426430
mov eax, dword [esi + 0x30]
test eax, eax
je 0x427af3
push eax
push dword [ebx + 0x834]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [esp + 0x3d], 0
mov ecx, dword [ebx + 0xb50]
je 0x427b07
mov eax, 0x30
jmp 0x427b19
cmp byte [esp + 0x3e], 0
mov eax, 0x28
mov edx, 0x38
cmovne eax, edx
add dword [ecx + eax], 1
adc dword [ecx + eax + 4], 0
cmp byte [esp + 0x3e], 0
jne 0x427bbe
jmp 0x427b85
movzx eax, byte [esp + 0x3e]
mov ecx, ebx
push 1
push dword [esp + 0x1c]
push dword [esp + 0x24]
push eax
call fcn.00418270
push dword [esi + 4]
mov ecx, ebx
push dword [esi]
call fcn.004189f0
mov cl, byte [esp + 0x3e]
test cl, cl
jne 0x427bc2
cmp dword [esp + 0x24], 0
jne 0x427b6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x5aa
jne 0x427b85
mov edx, dword [ebx + 0x790]
mov ecx, dword [ebx + 0x834]
or edx, 0x100
call fcn.00457a80
cmp dword [ebx + 0x684], 4
jne 0x427bbe
test dword [ebx + 0x698], 0x300
jne 0x427bbe
cmp dword [ebx + 0xff4], 0
jne 0x427bbe
xor eax, eax
mov ecx, ebx
test edi, edi
sete al
lea eax, [eax*2 + 2]
push eax
push dword [esi + 4]
push dword [esi]
call fcn.00419b70
mov cl, byte [esp + 0x3e]
cmp dword [ebx + 0x864], 0
je 0x427bf4
cmp dword [ebx + 0x854], 0
je 0x427c70
test dword [ebx + 0x698], 0x300
je 0x427bf4
mov eax, dword [ebx + 0x690]
and eax, 0x2000000
or eax, 0
je 0x427c70
test cl, cl
jne 0x427c70
test edi, edi
je 0x427c99
cmp byte [esp + 0x3d], cl
je 0x427c0d
mov ecx, 4
jmp 0x427c1f
cmp byte [esp + 0x3c], 0
mov ecx, 1
mov eax, 8
cmovne ecx, eax
xor edx, edx
test cl, 1
je 0x427c4a
test dword [ebx + 0x698], 0x400
je 0x427c4a
mov eax, dword [ebx + 0x690]
and eax, 0x2000000
or eax, edx
jne 0x427c4a
or ecx, 0x100000
lea edx, [esi + 0x78]
mov eax, dword [ebx + 0x834]
push edx
push dword [esi + 0x2c]
push dword [esi + 0x28]
push dword [esi + 0x24]
push dword [esi + 0x20]
push ecx
push ecx
mov ecx, dword [ebx + 0x84c]
lea eax, [eax + ecx*2]
mov ecx, ebx
push eax
call fcn.00416d90
test edi, edi
je 0x427c99
cmp dword [ebx + 0xff4], 0
jne 0x427c99
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.0047d39f
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x104]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047d39f
mov esp, ebp
pop ebp
ret 4