Function at 0x100155b0
Capabilities:
Check if file exists
Get file attributes
Move file
Resolve function by parsing pe exports
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x1002e6c7
mov eax, dword fs:[0]
push eax
sub esp, 0x98
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1003efe0]
xor eax, esp
push eax
lea eax, [esp + 0xac]
mov dword fs:[0], eax
mov edi, dword [esp + 0xc0]
mov eax, dword [edi + 4]
mov esi, dword [edi + 0x24]
push 0xfde9
xor ebx, ebx
push eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], ebx
call fcn.10013730
mov ecx, dword [edi + 8]
push 0xfde9
push ecx
lea ecx, [esp + 0xa8]
mov dword [esp + 0xbc], ebx
call fcn.10013730
cmp byte [esi + 0x66], bl
mov byte [esp + 0xb4], 1
je 0x10015644
mov eax, dword [edi + 0xc]
cmp eax, 1
je 0x10015639
cmp eax, 3
jne 0x10015644
cmp dword [edi], ebx
jne 0x10015644
mov ecx, 1
jmp 0x10015646
xor ecx, ecx
mov eax, dword [esp + 0xbc]
test eax, 0x400
mov dword [esp + 0x1c], ecx
je 0x100157c6
mov ecx, dword [esi + 0xc0]
cmp ecx, ebx
jl 0x10015797
mov edx, dword [esi + 0xb4]
lea ebp, [esi + 0xb4]
lea eax, [edx + ecx*4]
mov edx, dword [eax]
cmp dword [edx], edi
jne 0x10015797
cmp ecx, ebx
mov eax, edx
push eax
jne 0x10015756
mov ebx, dword [eax + 4]
add ebx, 1
call fcn.10019a68
add esp, 4
mov ecx, ebp
call fcn.100151d0
add dword [esi + 0xc0], 0xffffffff
mov eax, dword [edi + 0x24]
mov edx, dword [eax + 0x50]
mov eax, dword [esi + 0xd0]
cmp eax, 0x1f
mov ecx, dword [esi + 0xcc]
jbe 0x100156c6
mov eax, 0x1f
shl eax, 0x18
or ecx, eax
mov al, byte [esi + 0xd4]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 0xd8]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x24], al
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x50]
call fcn.100137a0
push eax
call fcn.10013ea0
movzx eax, al
add esp, 0x14
test eax, eax
je 0x10015797
mov eax, dword [esp + 0x2c]
mov cl, byte [esi + 0xd4]
mov edx, eax
xor edx, ebx
and edx, 0xffffff
xor eax, edx
mov byte [esp + 0x20], cl
mov edx, dword [esp + 0x20]
mov ecx, dword [esi + 0xd8]
push edx
mov edx, dword [edi + 0x24]
push ecx
push eax
mov dword [esp + 0x38], eax
mov eax, dword [edx + 0x50]
push eax
lea ecx, [esp + 0x50]
call fcn.100137a0
push eax
call fcn.10013f20
add esp, 0x14
jmp 0x10015797
mov edi, dword [eax + 4]
call fcn.10019a68
add esp, 4
mov ecx, ebp
call fcn.100151d0
add dword [esi + 0xc0], 0xffffffff
mov eax, dword [esi + 0xc0]
mov ecx, dword [ebp]
mov eax, dword [ecx + eax*4]
add dword [eax + 4], edi
mov edx, dword [esi + 0xc0]
mov eax, dword [ebp]
mov eax, dword [eax + edx*4]
mov ecx, 0xffffff
cmp dword [eax + 4], ecx
jbe 0x10015797
mov dword [eax + 4], ecx
lea ecx, [esp + 0xa0]
mov byte [esp + 0xb4], 0
call fcn.10013620
lea ecx, [esp + 0x40]
mov dword [esp + 0xb4], 0xffffffff
call fcn.10013620
xor eax, eax
jmp 0x10015e22
and eax, 0x80
mov dword [esp + 0x24], eax
je 0x10015882
cmp ecx, ebx
je 0x10015964
mov ecx, dword [edi + 0x24]
mov eax, dword [esi + 0xd0]
cmp eax, 0x1f
mov ebx, dword [ecx + 0x50]
mov ecx, dword [esi + 0xcc]
jbe 0x100157f9
mov eax, 0x1f
mov edx, dword [esi + 0xd8]
shl eax, 0x18
or ecx, eax
mov al, byte [esi + 0xd4]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x2b]
push ecx
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x1c]
mov byte [esp + 0x2f], al
push edx
lea eax, [esp + 0x28]
push eax
push ebx
lea ecx, [esp + 0x50]
call fcn.100137a0
push eax
call fcn.10013ea0
mov ebp, dword [esp + 0x34]
movzx ecx, al
mov dword [esp + 0x44], ecx
shr ebp, 0x18
add esp, 0x14
lea ecx, [esp + 0x40]
and ebp, 0x1f
call fcn.100137a0
mov ecx, dword [0x1004045c]
test ecx, ecx
je 0x100158ea
push ebx
push eax
call ecx
add esp, 8
test eax, eax
setne al
test al, al
je 0x100158ea
mov eax, 1
mov dword [edi + 0x14], eax
mov dword [edi], 0
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x58]
call fcn.10013600
cmp dword [edi], 0
mov ebx, 2
mov byte [esp + 0xb4], bl
jne 0x100158ac
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esi + 0x84]
call fcn.10013ab0
mov eax, dword [edi + 0x14]
test al, 1
mov ecx, 5
lea ebp, [ecx + 6]
lea edx, [ecx - 1]
jne 0x10015ae6
test eax, 0x800
jne 0x10015ae6
test al, al
jns 0x10015a11
cmp dword [edi], 0
mov dword [esp + 0x18], ebx
jne 0x100158e1
mov dword [esi + 0x40], ebx
mov byte [esi + 0x57], 1
jmp 0x10015bb3
cmp dword [esp + 0x30], 0
je 0x10015964
mov eax, dword [esi + 0xcc]
mov ecx, dword [esp + 0x20]
mov edx, eax
and edx, ecx
and edx, 0xe0000000
cmp edx, eax
jne 0x10015964
test ebp, ebp
je 0x10015915
cmp ebp, dword [esi + 0xd0]
jb 0x10015964
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10015925
cmp eax, dword [esi + 0xd8]
jb 0x10015964
mov al, byte [esi + 0xd4]
mov dl, al
and dl, byte [esp + 0x2b]
cmp dl, al
jne 0x10015964
mov eax, 1
mov dword [edi + 0x14], eax
mov dword [edi], 0
cmp byte [esi + 0x67], 0
mov dword [esp + 0x20], eax
je 0x10015882
and ecx, 0xffffff
mov eax, ecx
add dword [esi + 0xe4], eax
jmp 0x10015882
cmp byte [esi + 0x67], 0
je 0x10015797
mov ecx, dword [edi]
test ecx, ecx
je 0x10015797
mov eax, dword [esi + 0xc0]
cmp eax, 0xffffffff
jne 0x100159b8
push 8
call fcn.100199a5
mov ebx, 1
mov dword [eax + 4], ebx
mov ecx, dword [edi]
add esp, 4
lea edx, [esp + 0x30]
mov dword [eax], ecx
push edx
lea ecx, [esi + 0xb4]
mov dword [esp + 0x34], eax
call fcn.100151a0
add dword [esi + 0xc0], ebx
jmp 0x10015797
mov edx, dword [esi + 0xb4]
mov eax, dword [edx + eax*4]
cmp ecx, dword [eax]
lea ebp, [esi + 0xb4]
jne 0x100159e0
add dword [eax + 4], 1
mov eax, dword [esi + 0xc0]
mov ecx, dword [ebp]
mov eax, dword [ecx + eax*4]
jmp 0x1001578a
push 8
call fcn.100199a5
mov ebx, 1
mov dword [eax + 4], ebx
mov edx, dword [edi]
mov dword [esp + 0x34], eax
mov dword [eax], edx
add esp, 4
lea eax, [esp + 0x30]
push eax
mov ecx, ebp
call fcn.100151a0
add dword [esi + 0xc0], ebx
jmp 0x10015797
test eax, 0x200
je 0x10015a2d
cmp dword [edi], 0
mov dword [esp + 0x18], ecx
jne 0x10015a24
mov dword [esi + 0x40], ecx
mov byte [esi + 0x57], 1
jmp 0x10015bb3
test al, 0x20
je 0x10015aad
mov ecx, dword [esi + 0x40]
cmp ecx, ebp
mov edx, 3
mov dword [esp + 0x18], edx
jne 0x10015a45
mov dword [esp + 0x18], ebp
cmp ecx, 9
jne 0x10015a4e
mov dword [esp + 0x18], ecx
cmp byte [esi + 0x54], 0
je 0x10015a58
test eax, eax
jns 0x10015a5b
mov dword [esi + 0x40], edx
mov ebx, dword [esp + 0x24]
test ebx, ebx
jne 0x10015bb3
cmp dword [esp + 0x1c], ebx
je 0x10015a88
mov eax, dword [edi + 0x24]
mov edx, dword [eax + 0x50]
push edx
lea ecx, [eax + 0x84]
call fcn.100137a0
push eax
call fcn.10013fa0
add esp, 8
test ebx, ebx
jne 0x10015bb3
cmp dword [edi], ebx
je 0x10015bb3
cmp byte [esi + 0x66], bl
je 0x10015bb3
mov eax, dword [edi + 0x24]
mov ecx, dword [eax + 0x50]
push ecx
jmp 0x10015b9f
test al, 0x40
je 0x10015ad5
mov eax, dword [esi + 0x40]
cmp eax, 9
mov dword [esp + 0x18], edx
jne 0x10015ac1
mov dword [esp + 0x18], eax
cmp eax, ebp
jne 0x10015ac9
mov dword [esp + 0x18], ebp
cmp eax, 3
jne 0x10015a58
cmp dword [edi], 0
jne 0x10015a5b
jmp 0x10015a58
mov eax, 1
mov dword [esp + 0x18], eax
mov dword [esi + 0x40], eax
jmp 0x10015bb3
cmp dword [edi], 0
mov ecx, 1
mov dword [esp + 0x18], ecx
jne 0x10015b5a
cmp dword [esp + 0x24], 0
mov dword [esi + 0x40], ecx
jne 0x10015b5a
cmp dword [esp + 0x1c], 0
je 0x10015b5a
test dword [edi + 0x14], 0x80000800
jne 0x10015b5a
cmp byte [esi + 0x56], 0
jne 0x10015b5a
mov eax, dword [esi + 0xcc]
add eax, ecx
mov ecx, dword [esi + 0xd0]
cmp ecx, 0x1f
jbe 0x10015b2c
mov ecx, 0x1f
movzx edx, byte [esi + 0xd4]
shl ecx, 0x18
or eax, ecx
mov ecx, dword [esi + 0xd8]
push edx
mov edx, dword [edi + 0x24]
push ecx
push eax
mov eax, dword [edx + 0x50]
push eax
lea ecx, [esp + 0x50]
call fcn.100137a0
push eax
call fcn.10013f20
add esp, 0x14
test byte [edi + 0x10], 4
je 0x10015b89
cmp byte [esi + 0x66], 0
mov dword [esp + 0x18], 0xa
je 0x10015b89
mov eax, dword [edi + 0x24]
mov ecx, dword [eax + 0x50]
push ecx
lea ecx, [eax + 0x84]
call fcn.100137a0
push eax
call fcn.10013fa0
add esp, 8
test dword [edi + 0x10], 0x1000000
je 0x10015bb3
cmp byte [esi + 0x66], 0
je 0x10015bb3
mov eax, dword [edi + 0x24]
mov edx, dword [eax + 0x50]
push edx
lea ecx, [eax + 0x84]
call fcn.100137a0
push eax
call fcn.10013fa0
add esp, 8
mov al, byte [esp + 0xbc]
or ebp, 0xffffffff
test al, 0x40
jne 0x10015bf7
test al, 0x20
je 0x10015bf7
cmp byte [esi + 0xc], 0
je 0x10015bf7
cmp dword [edi], 0
jne 0x10015bf7
cmp dword [esi + 0x60], ebp
je 0x10015bf7
mov eax, dword [edi + 0x14]
test al, al
js 0x10015be0
test eax, eax
jns 0x10015bf4
lea ecx, [esp + 0x40]
call fcn.100137a0
mov ecx, dword [esi + 0x60]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [esi + 0x60], ebp
test byte [edi + 0x10], 0x22
mov eax, dword [edi + 0x14]
mov ebx, 6
je 0x10015c23
test eax, 0x2a00
jne 0x10015c48
test al, al
js 0x10015c48
xor ebp, ebp
test eax, eax
jns 0x10015c1a
mov dword [esp + 0x18], ebp
cmp dword [edi], ebp
jne 0x10015c55
mov dword [esi + 0x40], ebp
jmp 0x10015c55
test al, 0x81
jne 0x10015c48
test eax, 0x2a00
jne 0x10015c48
test eax, eax
jns 0x10015c53
mov eax, dword [esp + 0x18]
cmp eax, 0xb
je 0x10015c53
cmp eax, 9
je 0x10015c53
xor ebp, ebp
mov dword [esp + 0x18], ebp
jmp 0x10015c55
test eax, 0x2000
je 0x10015c53
mov dword [esp + 0x18], ebx
xor ebp, ebp
cmp dword [edi + 0x30], 0xc0000001
jne 0x10015c62
mov dword [esp + 0x18], ebp
mov dword [esi + 0x48], ebp
mov eax, dword [edi + 0x10]
test eax, 0x4000
je 0x10015c78
mov dword [esi + 0x48], 1
jmp 0x10015ca2
test eax, 0x2000
je 0x10015c88
mov dword [esi + 0x48], 2
jmp 0x10015ca2
test eax, 0x8000
je 0x10015c98
mov dword [esi + 0x48], 5
jmp 0x10015ca2
test eax, 0x10000
je 0x10015ca2
mov dword [esi + 0x48], ebx
test dword [edi + 0x10], 0x4000000
je 0x10015ce5
cmp dword [esp + 0x24], ebp
mov dword [esi + 0x48], 7
mov dword [esp + 0x18], 3
jne 0x10015ce5
cmp dword [edi], ebp
je 0x10015ce5
cmp byte [esi + 0x66], 0
je 0x10015ce5
mov eax, dword [edi + 0x24]
mov edx, dword [eax + 0x50]
push edx
lea ecx, [eax + 0x84]
call fcn.100137a0
push eax
call fcn.10013fa0
add esp, 8
mov dword [esi + 0x4c], ebp
mov eax, dword [edi + 0x10]
test eax, 0x40000
je 0x10015cfb
mov dword [esi + 0x4c], 2
jmp 0x10015d35
test eax, 0x80000
je 0x10015d0b
mov dword [esi + 0x4c], 3
jmp 0x10015d35
test eax, 0x20000
je 0x10015d1b
mov dword [esi + 0x4c], 4
jmp 0x10015d35
test eax, 0x1000
je 0x10015d2b
mov dword [esi + 0x4c], 1
jmp 0x10015d35
test eax, 0x10000000
je 0x10015d35
mov dword [esi + 0x4c], ebx
test byte [edi + 0x14], 0x60
je 0x10015db0
mov eax, dword [edi + 0x1c]
push eax
lea ecx, [esp + 0x5c]
call fcn.100138e0
lea ebp, [esi + 0x6c]
mov ecx, ebp
call fcn.10013690
cmp eax, 0x100
jae 0x10015da5
mov ecx, ebp
call fcn.10013670
test al, al
jne 0x10015d99
push 0
push 0x1003362c
lea ecx, [esp + 0x3c]
call fcn.10013730
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebp
mov byte [esp + 0xb8], 3
call fcn.100139b0
lea ecx, [esp + 0x34]
mov byte [esp + 0xb4], 2
call fcn.10013620
lea edx, [esp + 0x58]
push edx
mov ecx, ebp
call fcn.100139b0
push ebp
lea ecx, [esi + 0x78]
call fcn.10013ab0
xor ebp, ebp
mov eax, dword [edi + 0x14]
test eax, eax
js 0x10015e3c
test al, 0x20
je 0x10015e3c
cmp byte [esi + 0x54], 0
je 0x10015e3c
mov dword [esp + 0x1c], 3
mov ecx, 1
mov dword [esp + 0x14], ecx
mov dword [esi + 0x44], ecx
lea ecx, [esp + 0x58]
mov byte [esp + 0xb4], 1
call fcn.10013620
lea ecx, [esp + 0xa0]
mov byte [esp + 0xb4], 0
call fcn.10013620
lea ecx, [esp + 0x40]
mov dword [esp + 0xb4], 0xffffffff
call fcn.10013620
cmp dword [esp + 0x20], 0
mov eax, 9
jne 0x10015e22
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret
mov eax, dword [esi + 0x1c]
cmp eax, ebp
mov dword [esp + 0x1c], ebp
jne 0x10015e4c
cmp dword [esi + 0x24], ebp
je 0x10015dcd
cmp dword [esp + 0x24], ebp
je 0x10015e5c
cmp dword [esp + 0x20], ebp
je 0x10015dcd
cmp byte [esi + 0x65], 0
je 0x1001631e
cmp dword [edi + 0x18], 0x94
jb 0x1001631e
cmp dword [esi + 0x24], ebp
je 0x1001631e
mov eax, dword [esi + 0x4c]
mov ecx, dword [edi + 0x10]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x74], eax
mov eax, dword [esi + 0x48]
mov dword [esp + 0x84], ecx
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], 0x30
mov dword [esp + 0x98], ebp
mov dword [esp + 0x8c], edx
mov dword [esp + 0x90], ebp
mov dword [esp + 0x94], eax
call fcn.100137a0
mov dword [esp + 0x9c], eax
mov dword [esp + 0x14], 1
mov eax, dword [esi + 0x4c]
cmp eax, ebp
mov dword [esp + 0x88], ebp
je 0x100161c0
cmp eax, ebx
je 0x100161c0
cmp eax, 2
jne 0x10015f74
lea ecx, [esp + 0x4c]
call fcn.10013600
mov eax, dword [edi + 0x7c]
cmp eax, ebp
mov byte [esp + 0xb4], 6
lea ecx, [esp + 0x4c]
je 0x10015f12
push eax
jmp 0x10015f17
push 0x100326dd
call fcn.100138e0
lea ecx, [esp + 0x4c]
call fcn.100137a0
mov edx, dword [esi + 0x28]
mov ecx, dword [edi + 0x84]
push edx
mov edx, dword [esi + 0x24]
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x9c], ecx
push eax
lea ecx, [esp + 0x78]
push ecx
mov dword [esp + 0x88], ebp
mov dword [esp + 0x8c], ebp
call edx
add esp, 0xc
lea ecx, [esp + 0x4c]
mov byte [esp + 0xb4], 2
call fcn.10013620
mov eax, dword [esp + 0x14]
jmp 0x100163f8
cmp eax, 3
jne 0x1001604e
mov eax, dword [edi + 0x7c]
push ebp
push eax
lea ecx, [esp + 0x6c]
call fcn.10013730
mov ecx, dword [edi + 0x8c]
push ebp
push ecx
lea ecx, [esp + 0x54]
mov byte [esp + 0xbc], 7
call fcn.10013730
mov edx, dword [edi + 0x90]
push ebp
push edx
lea ecx, [esp + 0x3c]
mov byte [esp + 0xbc], 8
call fcn.10013730
lea ecx, [esp + 0x64]
mov byte [esp + 0xb4], 9
call fcn.100137a0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x78], eax
call fcn.100137a0
lea ecx, [esp + 0x34]
mov dword [esp + 0x7c], eax
call fcn.100137a0
mov ecx, dword [esi + 0x28]
mov dword [esp + 0x80], eax
mov eax, dword [edi + 0x88]
push ecx
mov ecx, dword [esi + 0x24]
lea edx, [esp + 0x18]
mov dword [esp + 0x9c], eax
push edx
lea eax, [esp + 0x78]
push eax
call ecx
add esp, 0xc
lea ecx, [esp + 0x34]
mov byte [esp + 0xb4], 8
call fcn.10013620
lea ecx, [esp + 0x4c]
mov byte [esp + 0xb4], 7
call fcn.10013620
lea ecx, [esp + 0x64]
mov byte [esp + 0xb4], 2
call fcn.10013620
mov eax, dword [esp + 0x14]
jmp 0x100163f8
cmp eax, 4
jne 0x100160b7
mov edx, dword [edi + 0x80]
push ebp
push edx
lea ecx, [esp + 0x6c]
call fcn.10013730
lea ecx, [esp + 0x64]
mov byte [esp + 0xb4], 0xa
call fcn.100137a0
mov dword [esp + 0x78], eax
mov eax, dword [esi + 0x28]
push eax
mov eax, dword [esi + 0x24]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x78]
push edx
mov dword [esp + 0x88], ebp
mov dword [esp + 0x8c], ebp
call eax
add esp, 0xc
lea ecx, [esp + 0x64]
mov byte [esp + 0xb4], 2
call fcn.10013620
mov eax, dword [esp + 0x14]
jmp 0x100163f8
cmp eax, 1
jne 0x1001612f
mov ecx, dword [edi + 0x80]
push ebp
push ecx
lea ecx, [esp + 0x6c]
call fcn.10013730
lea ecx, [esi + 0x84]
mov byte [esp + 0xb4], 0xb
call fcn.100137a0
lea ecx, [esp + 0x64]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ebp
call fcn.100137a0
mov edx, dword [esi + 0x28]
push edx
mov edx, dword [esi + 0x24]
mov dword [esp + 0x84], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x78]
push ecx
mov dword [esp + 0xa4], ebp
call edx
add esp, 0xc
lea ecx, [esp + 0x64]
mov byte [esp + 0xb4], 2
call fcn.10013620
mov eax, dword [esp + 0x14]
jmp 0x100163f8
mov eax, dword [edi + 4]
push 0
push eax
lea ecx, [esp + 0x3c]
call fcn.10013730
mov eax, dword [edi]
test eax, eax
mov bl, 0xc
mov byte [esp + 0xb4], bl
je 0x10016152
mov eax, dword [eax + 4]
jmp 0x10016154
xor eax, eax
push 0
push eax
lea ecx, [esp + 0x6c]
call fcn.10013730
lea ecx, [esp + 0x34]
mov byte [esp + 0xb4], 0xd
call fcn.100137a0
lea ecx, [esp + 0x64]
mov dword [esp + 0x78], eax
call fcn.100137a0
mov edx, dword [esi + 0x28]
mov ecx, dword [edi + 0x84]
push edx
mov edx, dword [esi + 0x24]
mov dword [esp + 0x80], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x9c], ecx
push eax
lea ecx, [esp + 0x78]
push ecx
mov dword [esp + 0x8c], 0
call edx
mov byte [esp + 0xc0], bl
lea ecx, [esp + 0x70]
jmp 0x100162fc
lea ecx, [esi + 0x84]
call fcn.100137a0
cmp dword [edi], ebp
mov dword [esp + 0x78], eax
jne 0x10016200
mov eax, dword [esi + 0x28]
push eax
mov eax, dword [esi + 0x24]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x78]
push edx
mov dword [esp + 0x88], ebp
mov dword [esp + 0x8c], ebp
call eax
mov eax, dword [esp + 0x20]
add esp, 0xc
jmp 0x100163f8
lea ecx, [esp + 0x34]
call fcn.10013600
lea ecx, [esp + 0x4c]
mov byte [esp + 0xb4], 4
call fcn.10013600
mov ecx, dword [edi + 0x20]
mov ebp, 1
sub ecx, ebp
cmp ecx, ebp
mov byte [esp + 0xb4], 5
jb 0x10016288
cmp ebp, 1
je 0x10016252
call fcn.1000d080
push eax
lea ecx, [esp + 0x50]
call fcn.100138e0
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x38]
call fcn.10013ac0
mov eax, dword [esi + 0xb4]
mov ecx, dword [eax + ebp*4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x80]
push eax
lea ecx, [esp + 0x50]
call fcn.100138e0
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x38]
call fcn.10013ac0
mov edx, dword [edi + 0x20]
add ebp, 1
sub edx, 1
cmp ebp, edx
jbe 0x10016230
mov eax, dword [edi + 0x80]
push eax
lea ecx, [esp + 0x50]
call fcn.100138e0
lea ecx, [esp + 0x34]
call fcn.100137a0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x7c], eax
call fcn.100137a0
cmp dword [esi + 0x4c], ebx
mov dword [esp + 0x80], eax
je 0x100162d2
mov eax, dword [edi]
test eax, eax
je 0x100162d2
mov ecx, dword [edi + 0x10]
and ecx, 4
or ecx, dword [eax + 0x10]
mov dword [esp + 0x88], ecx
jmp 0x100162dd
mov dword [esp + 0x88], 0
mov edx, dword [esi + 0x28]
push edx
mov edx, dword [esi + 0x24]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x78]
push ecx
call edx
mov byte [esp + 0xc0], 4
lea ecx, [esp + 0x58]
add esp, 0xc
call fcn.10013620
lea ecx, [esp + 0x34]
mov byte [esp + 0xb4], 2
call fcn.10013620
mov eax, dword [esp + 0x14]
jmp 0x100163f8
cmp eax, ebp
je 0x100163ef
cmp byte [esi + 0x64], 0
mov eax, dword [edi]
je 0x10016374
cmp eax, ebp
je 0x1001633d
mov ebp, dword [edi + 0x10]
and ebp, 4
or ebp, dword [eax + 0x10]
jmp 0x1001633f
xor ebp, ebp
test eax, eax
lea ecx, [esi + 0x84]
jne 0x1001634d
lea ecx, [esp + 0x40]
call fcn.100137a0
mov ebx, eax
mov eax, dword [esi + 0x20]
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x60]
call fcn.100137a0
push eax
mov eax, dword [edi + 0x10]
and eax, 0x1000000
or eax, dword [edi + 0x14]
jmp 0x100163c9
cmp eax, ebp
je 0x1001639b
cmp dword [esp + 0x18], 1
jne 0x10016390
cmp byte [esi + 0x14], 0
jne 0x10016390
mov eax, 1
mov dword [esp + 0x14], eax
jmp 0x1001640f
mov ebp, dword [edi + 0x10]
and ebp, 4
or ebp, dword [eax + 0x10]
jmp 0x1001639d
xor ebp, ebp
test eax, eax
lea ecx, [esi + 0x84]
jne 0x100163ab
lea ecx, [esp + 0x40]
call fcn.100137a0
mov ebx, eax
mov eax, dword [esi + 0x20]
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x60]
call fcn.100137a0
push eax
mov eax, dword [esp + 0x24]
mov edx, dword [esi + 0x48]
push edx
push eax
push ebp
lea ecx, [esp + 0xb8]
call fcn.100137a0
mov ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x1c]
push eax
push ebx
push ecx
call edx
mov eax, dword [esp + 0x38]
add esp, 0x24
jmp 0x100163f8
mov eax, 1
mov dword [esp + 0x14], eax
cmp dword [esp + 0x18], 1
je 0x10016405
test byte [edi + 0x10], 2
je 0x10016423
cmp eax, 2
je 0x10016423
cmp eax, 9
je 0x10016423
test dword [edi + 0x14], 0x8007ff80
jne 0x10016423
mov eax, 1
mov dword [esp + 0x14], eax
jmp switch.0x1001642c
cmp eax, 0xa
ja case.0x1001642c.1
jmp dword [eax*4 + 0x10016990]
mov dword [esp + 0x1c], 1
jmp case.0x1001642c.1
mov dword [esp + 0x1c], 8
mov byte [esi + 0x56], 1
jmp case.0x1001642c.1
xor ebx, ebx
cmp dword [edi], ebx
jne 0x10016543
mov eax, dword [edi + 4]
push 0xfde9
push eax
lea ecx, [esp + 0x3c]
call fcn.10013730
lea ecx, [esp + 0x34]
mov byte [esp + 0xb4], 0xe
call fcn.100137a0
push eax
mov ecx, esi
call fcn.10014ae0
cmp eax, ebx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x1c], ebx
jne 0x1001651f
lea ecx, [esp + 0x34]
call fcn.100137a0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100164fd
push 4
push ebx
lea ecx, [esp + 0x3c]
call fcn.100137a0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x100164fd
or dword [edi + 0x14], 0xc0000400
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x10]
push 1
mov dword [esi + 0x40], 9
mov eax, dword [ecx + 0x40]
push 1
push edx
call eax
add esp, 0xc
lea ecx, [esp + 0x34]
mov byte [esp + 0xb4], 2
call fcn.10013620
jmp case.0x1001642c.1
lea ecx, [esp + 0x34]
mov dword [esp + 0x1c], 4
mov dword [esp + 0x2c], ebx
mov byte [esp + 0xb4], 2
call fcn.10013620
jmp case.0x1001642c.1
mov dword [esi + 0x40], 5
or dword [edi + 0x14], 0x200
lea ecx, [esp + 0x34]
mov byte [esp + 0xb4], 2
call fcn.10013620
jmp case.0x1001642c.1
mov dword [esp + 0x1c], 4
jmp case.0x1001642c.1
cmp byte [esi + 0xc], 0
je 0x1001662d
cmp byte [esi + 0xd], 0
je 0x1001662d
lea ebp, [esi + 0x50]
push ebp
mov ecx, esi
call fcn.10014230
cmp dword [edi], 0
lea ecx, [esi + 0x84]
jne 0x1001657e
lea ecx, [esp + 0x40]
call fcn.100137a0
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [esi + 0x60], eax
je 0x100165b1
cmp dword [edi], 0
jne 0x100165aa
test al, 1
je 0x100165aa
and eax, 0xfffffffe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x100165b1
mov dword [esi + 0x60], 0xffffffff
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
call ebx
cmp eax, 0xffffffff
mov dword [ebp], eax
jne 0x10016614
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x10016614
mov eax, dword [esi + 0x3c]
test eax, eax
jle 0x10016614
push eax
call fcn.100142d0
add esp, 4
test al, al
je 0x10016614
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea ecx, [esp + 0x58]
call fcn.100137a0
push eax
call ebx
mov dword [ebp], eax
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov ebp, dword [ebp]
cmp ebp, 0xffffffff
je 0x10016629
mov ecx, dword [esi + 0x68]
test ecx, ecx
je 0x10016629
push ebp
call fcn.10013390
mov eax, dword [esp + 0x14]
sub eax, 3
neg eax
sbb eax, eax
and eax, 7
add eax, 3
mov dword [esp + 0x1c], eax
jmp case.0x1001642c.1
mov dword [esp + 0x1c], 7
jmp case.0x1001642c.1
sub eax, 6
neg eax
sbb eax, eax
and eax, 2
cmp byte [esi + 0xc], 0
mov dword [esp + 0x24], eax
je 0x1001667f
cmp byte [esi + 0xd], 0
jne 0x1001667f
or dword [edi + 0x14], 0x80004000
xor eax, eax
mov dword [esi + 0x40], eax
mov dword [esp + 0x1c], eax
jmp case.0x1001642c.1
lea ecx, [esp + 0x40]
call fcn.100137a0
lea ecx, [esp + 0xa0]
mov ebx, eax
call fcn.100137a0
push 0xa
mov ebp, eax
push str._System__
push ebp
mov dword [esp + 0x3c], 0
call fcn.1001c604
add esp, 0xc
test eax, eax
jne 0x100166c7
test dword [edi + 0x10], 0x20000
je 0x100166c7
mov eax, 1
lea ebx, [ebp + 0x14]
jmp 0x100166cb
mov eax, dword [esp + 0x30]
cmp dword [edi], 0
je 0x100166e1
test eax, eax
jne 0x100166e1
mov dword [esp + 0x1c], 6
jmp case.0x1001642c.1
cmp byte [esi + 0xc], 0
je 0x10016701
lea ecx, [esi + 0x90]
call fcn.10013670
test al, al
jne 0x10016701
lea ecx, [esi + 0x50]
push ecx
mov ecx, esi
call fcn.10014230
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1001671c
test al, 1
je 0x1001671c
and eax, 0xfffffffe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x24]
mov ecx, dword [edi + 0x14]
lea ebp, [esi + 8]
push ebp
push edx
push eax
push ecx
push 0
lea ecx, [esp + 0x6c]
call fcn.100137a0
push eax
push 0
push ebx
call fcn.10013c00
add esp, 0x20
cmp eax, 0x13
mov dword [esp + 0x1c], eax
jne 0x100167b9
mov eax, dword [esi + 4]
push eax
call fcn.10019746
mov eax, dword [ebp]
xor ecx, ecx
add eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1001967e
mov ecx, 0x10030918
mov edx, eax
add esp, 8
mov dword [esi + 4], eax
sub edx, ecx
movzx eax, word [ecx]
mov word [ecx + edx], ax
add ecx, 2
test ax, ax
jne 0x10016781
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x24]
mov edx, dword [edi + 0x14]
push ebp
push eax
push ecx
push edx
push 0
lea ecx, [esp + 0x6c]
call fcn.100137a0
push eax
push 0
push ebx
call fcn.10013c00
add esp, 0x20
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1c]
cmp ecx, 2
je 0x100167d0
cmp ecx, 7
je 0x100167d0
cmp ecx, 0x11
jne 0x10016888
mov eax, dword [esi + 0x3c]
test eax, eax
jle 0x10016888
push eax
call fcn.100142d0
add esp, 4
test al, al
je 0x10016884
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10016807
test al, 1
je 0x10016807
and eax, 0xfffffffe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x24]
mov edx, dword [edi + 0x14]
push ebp
push eax
push ecx
push edx
push 0
lea ecx, [esp + 0x6c]
call fcn.100137a0
push eax
push 0
push ebx
call fcn.10013c00
add esp, 0x20
cmp eax, 0x13
jne 0x1001687e
mov eax, dword [esi + 4]
push eax
call fcn.10019746
mov eax, dword [ebp]
xor ecx, ecx
add eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1001967e
add esp, 8
push ebp
push eax
mov dword [esi + 4], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [edi + 0x14]
push eax
push ecx
push 0
lea ecx, [esp + 0x6c]
call fcn.100137a0
push eax
push 0
push ebx
call fcn.10013c00
add esp, 0x20
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x100168c4
cmp ecx, 0xf
je 0x100168a1
or dword [edi + 0x14], 0x80004000
mov dword [esi + 0x40], 0
jmp 0x100168d2
or dword [edi + 0x14], 0xc0004000
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x10]
push 1
mov dword [esi + 0x40], 0xb
mov ecx, dword [edx + 0x40]
push 1
push eax
call ecx
add esp, 0xc
jmp 0x100168d2
or dword [edi + 0x14], 0x2000
mov dword [esi + 0x40], 6
mov dword [esp + 0x2c], 1
mov dword [esp + 0x1c], 0
lea ecx, [esi + 0x6c]
call fcn.10013640
cmp dword [esp + 0x2c], 0
mov ecx, dword [esp + 0x14]
je 0x10015dd6
cmp ecx, 5
je 0x1001690c
cmp ecx, 7
je 0x1001690c
cmp ecx, 9
jne 0x10015dd6
mov eax, dword [esp + 0xbc]
and eax, 0xffffff7f
push edi
push eax
call fcn.100155b0
mov ecx, dword [esp + 0x1c]
add esp, 8
cmp ecx, 7
je 0x10016934
cmp ecx, 9
jne 0x10015dd6
cmp dword [esp + 0x18], 1
je 0x10015dd6
cmp dword [esp + 0x20], 0
mov esi, 9
jne 0x1001694d
mov esi, eax
lea ecx, [esp + 0x58]
mov byte [esp + 0xb4], 1
call fcn.10013620
lea ecx, [esp + 0xa0]
mov byte [esp + 0xb4], 0
call fcn.10013620
lea ecx, [esp + 0x40]
mov dword [esp + 0xb4], 0xffffffff
call fcn.10013620
mov eax, esi
jmp 0x10015e22