Function at 0x1006ce20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c6121
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x100f7084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1ec], ecx
mov dword [ebp - 0x1b4], 0
call fcn.1003ff40
add eax, 0x334
push eax
lea eax, [ebp - 0x148]
push eax
call fcn.1002f210
add esp, 8
mov dword [ebp - 0x1f0], eax
mov ecx, dword [ebp - 0x1f0]
mov dword [ebp - 0x1f4], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x1f4]
push edx
lea eax, [ebp - 0x160]
push eax
call fcn.1005e140
mov ecx, eax
call fcn.1005e0b0
mov dword [ebp - 0x1f8], eax
mov ecx, dword [ebp - 0x1f8]
mov dword [ebp - 0x1fc], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x1fc]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.10035f90
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x160]
call fcn.1000c290
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x148]
call fcn.1000c290
lea ecx, [ebp - 0x28]
call fcn.10049c40
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1006cf30
mov ecx, dword [ebp + 8]
call fcn.10005e50
mov ecx, dword [ebp - 0x1b4]
or ecx, 1
mov dword [ebp - 0x1b4], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.1000c290
mov eax, dword [ebp + 8]
jmp 0x1006d8f7
lea ecx, [ebp - 0x244]
call fcn.1007d5c0
mov byte [ebp - 4], 5
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x130]
push eax
call fcn.1002f330
add esp, 8
mov dword [ebp - 0x200], eax
mov ecx, dword [ebp - 0x200]
mov dword [ebp - 0x204], ecx
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x204]
call fcn.10007050
push eax
lea ecx, [ebp - 0xb8]
call fcn.10005de0
mov byte [ebp - 4], 7
lea edx, [ebp - 0xb8]
push edx
lea ecx, [ebp - 0x244]
call fcn.1000d450
test eax, eax
jne 0x1006cfa5
mov dword [ebp - 0x1d4], 1
jmp 0x1006cfaf
mov dword [ebp - 0x1d4], 0
mov al, byte [ebp - 0x1d4]
mov byte [ebp - 0x1bd], al
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xb8]
call fcn.10005f30
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x130]
call fcn.10005f30
movzx ecx, byte [ebp - 0x1bd]
test ecx, ecx
je 0x1006d021
mov ecx, dword [ebp + 8]
call fcn.10005e50
mov edx, dword [ebp - 0x1b4]
or edx, 1
mov dword [ebp - 0x1b4], edx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x244]
call fcn.1000d3b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.1000c290
mov eax, dword [ebp + 8]
jmp 0x1006d8f7
push 6
lea ecx, [ebp - 0x27c]
call fcn.100163a0
mov byte [ebp - 4], 8
mov dword [ebp - 0x1bc], 0
mov dword [ebp - 0x1d0], 0
jmp 0x1006d057
mov eax, dword [ebp - 0x1d0]
add eax, 1
mov dword [ebp - 0x1d0], eax
lea ecx, [ebp - 0x244]
call fcn.1000d3f0
cmp dword [ebp - 0x1d0], eax
jae 0x1006d85e
lea ecx, [ebp - 0x1cc]
call fcn.1007d5c0
mov byte [ebp - 4], 9
push 0x2c
mov ecx, dword [ebp - 0x1d0]
push ecx
lea ecx, [ebp - 0x244]
call fcn.1000d410
push eax
lea ecx, [ebp - 0x1cc]
call fcn.1000d740
lea ecx, [ebp - 0x1cc]
call fcn.1000d3f0
cmp eax, 3
jae 0x1006d0be
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x1cc]
call fcn.1000d3b0
jmp 0x1006d048
push 0
lea ecx, [ebp - 0x1cc]
call fcn.1000d410
mov ecx, eax
call fcn.10007050
push eax
call fcn.100a6ca8
add esp, 4
mov dword [ebp - 0x1d8], eax
push 1
lea ecx, [ebp - 0x1cc]
call fcn.1000d410
mov ecx, eax
call fcn.10007050
push eax
call fcn.100a6ca8
add esp, 4
mov dword [ebp - 0x1dc], eax
push 2
lea ecx, [ebp - 0x1cc]
call fcn.1000d410
mov ecx, eax
call fcn.10007050
push eax
call fcn.100a6ca8
add esp, 4
mov dword [ebp - 0x208], eax
mov edx, dword [ebp - 0x1ec]
mov eax, dword [ebp - 0x1d8]
cmp eax, dword [edx + 0x18]
je 0x1006d155
cmp dword [ebp - 0x1d8], 0
je 0x1006d155
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x1cc]
call fcn.1000d3b0
jmp 0x1006d048
mov ecx, dword [ebp - 0x1ec]
mov edx, dword [ebp - 0x1dc]
cmp edx, dword [ecx + 0x1c]
je 0x1006d183
cmp dword [ebp - 0x1dc], 0
je 0x1006d183
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x1cc]
call fcn.1000d3b0
jmp 0x1006d048
cmp dword [ebp - 0x208], 0
jne 0x1006d84a
lea ecx, [ebp - 0x1cc]
call fcn.1000d3f0
cmp eax, 8
jbe 0x1006d84a
push 3
lea ecx, [ebp - 0x1cc]
call fcn.1000d410
mov ecx, eax
call fcn.10007050
push eax
call fcn.100a6ca8
add esp, 4
mov dword [ebp - 0x288], eax
push 4
lea ecx, [ebp - 0x1cc]
call fcn.1000d410
mov ecx, eax
call fcn.10007050
push eax
lea ecx, [ebp - 0xa0]
call fcn.10005de0
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x40]
push ecx
call fcn.1002f0c0
add esp, 8
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xa0]
call fcn.10005f30
push 5
lea ecx, [ebp - 0x1cc]
call fcn.1000d410
mov ecx, eax
call fcn.10007050
push eax
call fcn.100a6ca8
add esp, 4
mov dword [ebp - 0x25c], eax
push 6
lea ecx, [ebp - 0x1cc]
call fcn.1000d410
mov ecx, eax
call fcn.10007050
push eax
lea ecx, [ebp - 0xd0]
call fcn.10005de0
mov byte [ebp - 4], 0xd
lea edx, [ebp - 0xd0]
push edx
lea eax, [ebp - 0x58]
push eax
call fcn.1002f0c0
add esp, 8
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xd0]
call fcn.10005f30
push 7
lea ecx, [ebp - 0x1cc]
call fcn.1000d410
mov ecx, eax
call fcn.10007050
push eax
call fcn.100a6ca8
add esp, 4
test eax, eax
je 0x1006d2a0
mov byte [ebp - 0x1b5], 1
jmp 0x1006d2a7
mov byte [ebp - 0x1b5], 0
mov cl, byte [ebp - 0x1b5]
mov byte [ebp - 0x1b6], cl
push 8
lea ecx, [ebp - 0x1cc]
call fcn.1000d410
mov ecx, eax
call fcn.10007050
push eax
lea ecx, [ebp - 0x88]
call fcn.10005de0
mov byte [ebp - 4], 0x10
lea edx, [ebp - 0x88]
push edx
lea eax, [ebp - 0x70]
push eax
call fcn.1002f0c0
add esp, 8
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x88]
call fcn.10005f30
movzx ecx, byte [ebp - 0x1b6]
test ecx, ecx
je 0x1006d36a
lea ecx, [ebp - 0x70]
call fcn.10021b60
movzx edx, al
test edx, edx
jne 0x1006d36a
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x118]
push ecx
call fcn.1002f1e0
add esp, 8
mov dword [ebp - 0x20c], eax
mov edx, dword [ebp - 0x20c]
mov dword [ebp - 0x210], edx
mov byte [ebp - 4], 0x13
mov eax, dword [ebp - 0x1b4]
or eax, 2
mov dword [ebp - 0x1b4], eax
mov ecx, dword [ebp - 0x210]
push ecx
call fcn.1002f010
add esp, 4
test eax, eax
je 0x1006d36a
mov dword [ebp - 0x1e0], 1
jmp 0x1006d374
mov dword [ebp - 0x1e0], 0
mov dl, byte [ebp - 0x1e0]
mov byte [ebp - 0x1be], dl
mov dword [ebp - 4], 0x12
mov eax, dword [ebp - 0x1b4]
and eax, 2
je 0x1006d3a4
and dword [ebp - 0x1b4], 0xfffffffd
lea ecx, [ebp - 0x118]
call fcn.1000c290
movzx ecx, byte [ebp - 0x1be]
test ecx, ecx
je 0x1006d4ea
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x28c], esp
lea edx, [ebp - 0x40]
push edx
call fcn.10016220
mov dword [ebp - 0x258], eax
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0x290], eax
mov byte [ebp - 4], 0x14
push 0x100d5b28
mov ecx, dword [ebp - 0x1bc]
push ecx
lea ecx, [ebp - 0x27c]
call fcn.10018260
mov ecx, eax
call fcn.10018520
mov byte [ebp - 4], 0x12
mov ecx, eax
call fcn.10017960
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x294], esp
lea edx, [ebp - 0x70]
push edx
call fcn.10016220
mov dword [ebp - 0x254], eax
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0x298], eax
mov byte [ebp - 4], 0x15
push 0x100d5b34
mov ecx, dword [ebp - 0x1bc]
push ecx
lea ecx, [ebp - 0x27c]
call fcn.10018260
mov ecx, eax
call fcn.10018520
mov byte [ebp - 4], 0x12
mov ecx, eax
call fcn.10017960
push 1
lea edx, [ebp - 0x100]
push edx
call fcn.1002bca0
add esp, 8
mov dword [ebp - 0x250], eax
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x24c], eax
mov byte [ebp - 4], 0x16
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x29c], esp
mov edx, dword [ebp - 0x24c]
push edx
call fcn.10016220
mov dword [ebp - 0x248], eax
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x2a0], eax
mov byte [ebp - 4], 0x17
push 0x100d5b38
mov ecx, dword [ebp - 0x1bc]
push ecx
lea ecx, [ebp - 0x27c]
call fcn.10018260
mov ecx, eax
call fcn.10018520
mov byte [ebp - 4], 0x16
mov ecx, eax
call fcn.10017960
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x100]
call fcn.10005f30
jmp 0x1006d817
movzx edx, byte [ebp - 0x1b6]
test edx, edx
jne 0x1006d564
cmp dword [ebp - 0x25c], 1
jne 0x1006d564
lea ecx, [ebp - 0x58]
call fcn.10021b60
movzx eax, al
test eax, eax
jne 0x1006d564
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0xe8]
push edx
call fcn.1002f1e0
add esp, 8
mov dword [ebp - 0x238], eax
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x234], eax
mov byte [ebp - 4], 0x18
mov ecx, dword [ebp - 0x1b4]
or ecx, 4
mov dword [ebp - 0x1b4], ecx
mov edx, dword [ebp - 0x234]
push edx
call fcn.1002f010
add esp, 4
test eax, eax
je 0x1006d564
mov dword [ebp - 0x1e4], 1
jmp 0x1006d56e
mov dword [ebp - 0x1e4], 0
mov al, byte [ebp - 0x1e4]
mov byte [ebp - 0x1bf], al
mov dword [ebp - 4], 0x12
mov ecx, dword [ebp - 0x1b4]
and ecx, 4
je 0x1006d59e
and dword [ebp - 0x1b4], 0xfffffffb
lea ecx, [ebp - 0xe8]
call fcn.1000c290
movzx edx, byte [ebp - 0x1bf]
test edx, edx
je 0x1006d6e4
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x2a4], esp
lea eax, [ebp - 0x40]
push eax
call fcn.10016220
mov dword [ebp - 0x230], eax
mov ecx, dword [ebp - 0x230]
mov dword [ebp - 0x2cc], ecx
mov byte [ebp - 4], 0x19
push 0x100d5b44
mov edx, dword [ebp - 0x1bc]
push edx
lea ecx, [ebp - 0x27c]
call fcn.10018260
mov ecx, eax
call fcn.10018520
mov byte [ebp - 4], 0x12
mov ecx, eax
call fcn.10017960
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x2a8], esp
lea eax, [ebp - 0x58]
push eax
call fcn.10016220
mov dword [ebp - 0x228], eax
mov ecx, dword [ebp - 0x228]
mov dword [ebp - 0x2ac], ecx
mov byte [ebp - 4], 0x1a
push 0x100d5b50
mov edx, dword [ebp - 0x1bc]
push edx
lea ecx, [ebp - 0x27c]
call fcn.10018260
mov ecx, eax
call fcn.10018520
mov byte [ebp - 4], 0x12
mov ecx, eax
call fcn.10017960
push 0
lea eax, [ebp - 0x190]
push eax
call fcn.1002bca0
add esp, 8
mov dword [ebp - 0x224], eax
mov ecx, dword [ebp - 0x224]
mov dword [ebp - 0x220], ecx
mov byte [ebp - 4], 0x1b
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x2b0], esp
mov edx, dword [ebp - 0x220]
push edx
call fcn.10016220
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x2b4], eax
mov byte [ebp - 4], 0x1c
push 0x100d5b54
mov ecx, dword [ebp - 0x1bc]
push ecx
lea ecx, [ebp - 0x27c]
call fcn.10018260
mov ecx, eax
call fcn.10018520
mov byte [ebp - 4], 0x1b
mov ecx, eax
call fcn.10017960
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x190]
call fcn.10005f30
jmp 0x1006d817
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x2b8], esp
lea edx, [ebp - 0x40]
push edx
call fcn.10016220
mov dword [ebp - 0x284], eax
mov eax, dword [ebp - 0x284]
mov dword [ebp - 0x2bc], eax
mov byte [ebp - 4], 0x1d
push str.host_name
mov ecx, dword [ebp - 0x1bc]
push ecx
lea ecx, [ebp - 0x27c]
call fcn.10018260
mov ecx, eax
call fcn.10018520
mov byte [ebp - 4], 0x12
mov ecx, eax
call fcn.10017960
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x2c4], esp
push 0x100d56e2
call fcn.10016290
mov dword [ebp - 0x280], eax
mov edx, dword [ebp - 0x280]
mov dword [ebp - 0x2c8], edx
mov byte [ebp - 4], 0x1e
push 0x100d5b6c
mov eax, dword [ebp - 0x1bc]
push eax
lea ecx, [ebp - 0x27c]
call fcn.10018260
mov ecx, eax
call fcn.10018520
mov byte [ebp - 4], 0x12
mov ecx, eax
call fcn.10017960
push 0
lea ecx, [ebp - 0x178]
push ecx
call fcn.1002bca0
add esp, 8
mov dword [ebp - 0x264], eax
mov edx, dword [ebp - 0x264]
mov dword [ebp - 0x260], edx
mov byte [ebp - 4], 0x1f
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x2c0], esp
mov eax, dword [ebp - 0x260]
push eax
call fcn.10016220
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x22c]
mov dword [ebp - 0x2d0], ecx
mov byte [ebp - 4], 0x20
push str.dns_type
mov edx, dword [ebp - 0x1bc]
push edx
lea ecx, [ebp - 0x27c]
call fcn.10018260
mov ecx, eax
call fcn.10018520
mov byte [ebp - 4], 0x1f
mov ecx, eax
call fcn.10017960
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x178]
call fcn.10005f30
mov eax, dword [ebp - 0x1bc]
add eax, 1
mov dword [ebp - 0x1bc], eax
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x70]
call fcn.10005f30
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x58]
call fcn.10005f30
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x40]
call fcn.10005f30
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x1cc]
call fcn.1000d3b0
jmp 0x1006d048
lea ecx, [ebp - 0x1b0]
call fcn.10015d80
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 0x214]
mov dword [ebp - 0x218], ecx
mov byte [ebp - 4], 0x21
mov edx, dword [ebp - 0x218]
mov dword [ebp - 0x1e8], edx
lea eax, [ebp - 0x27c]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x1e8]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1e8]
mov edx, dword [eax + 4]
call edx
mov eax, dword [ebp - 0x1b4]
or eax, 1
mov dword [ebp - 0x1b4], eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x1b0]
call fcn.100173d0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x27c]
call fcn.10017420
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x244]
call fcn.1000d3b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.1000c290
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10086b0f
mov esp, ebp
pop ebp
ret 4