Function at 0x3407e733
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x3413f921
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
mov dword [ebp - 0x74], ecx
cmp dword [ebp + 0x18], 0
je 0x3407e760
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
cmp dword [ebp + 0x1c], 0
je 0x3407e76f
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], 0
cmp dword [ebp + 0x20], 0
je 0x3407e77e
mov edx, dword [ebp + 0x20]
mov dword [edx], 0
lea ecx, [ebp - 0x20]
call fcn.34017748
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.3407beea
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x10], 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.3407c117
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x3407e7cd
jmp 0x3407e887
push 0x10c
call fcn.340bd438
add esp, 4
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x28], 0
jne 0x3407e7ee
jmp 0x3407e887
push 0x10c
push 0
mov edx, dword [ebp - 0x28]
push edx
call fcn.340bd3e0
add esp, 0xc
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov dword [eax + 8], ecx
push 0x3f
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x28]
add eax, 0xc
push eax
call fcn.340bd451
add esp, 0xc
push 0x3f
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
add edx, 0x8c
push edx
call fcn.340bd451
add esp, 0xc
mov eax, dword [ebp - 0x74]
add eax, 0x34
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x28]
push ecx
push 0
mov edx, dword [ebp - 0x74]
add edx, 0x28
push edx
call fcn.3407873b
add esp, 0xc
mov eax, dword [ebp - 0x74]
add eax, 0x34
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x74]
call fcn.340803b9
xor eax, eax
test eax, eax
jne 0x3407e7af
cmp dword [ebp - 0x10], 0
je 0x3407eca7
push 0
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp - 0x74]
call fcn.3407df2c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.340020d0
test eax, eax
jne 0x3407ec6d
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.340020c0
push eax
lea edx, [ebp - 0x40]
push edx
call fcn.34003c94
add esp, 0x10
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.340020c0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
jne 0x3407e975
lea ecx, [ebp - 0x40]
call fcn.340020c0
push eax
call fcn.3400168a
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x3407e92e
cmp dword [ebp + 0x18], 0
je 0x3407e91d
mov eax, dword [ebp + 0x18]
mov dword [eax], reloc.WS2_32.dll_listen
cmp dword [ebp + 0x1c], 0
je 0x3407e92e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
mov ecx, 0x341a3e58
call fcn.3408c1f3
test eax, eax
je 0x3407e975
lea ecx, [ebp - 0x44]
call fcn.340994ba
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x40]
push eax
push str.CTSandboxMgr::CreateSandboxInstance_MySHCreateDirectory___s__bRet__lu_
push 0x34189e90
push 8
push 0x341a3e5c
call fcn.34090e9e
add esp, 0x18
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
call fcn.340994e1
mov ecx, dword [0x34189ea0]
mov dword [ebp - 0x34], ecx
mov edx, dword [0x34189ea4]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x3c], 0
jmp 0x3407e999
mov eax, dword [ebp - 0x3c]
add eax, 1
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0x1a
jge 0x3407ea0b
mov ecx, dword [ebp - 0x3c]
push ecx
mov ecx, dword [ebp - 0x3c]
imul ecx, ecx, 0x60
add ecx, 0x341a4af0
call fcn.34080da0
mov edx, dword [ebp - 0x3c]
add edx, 0x41
mov word [ebp - 0x34], dx
lea ecx, [ebp - 0x40]
call fcn.340020c0
push eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x48]
push ecx
call fcn.34002849
mov ecx, eax
call fcn.340088e5
mov byte [ebp - 4], 5
push 1
push 0x47
lea ecx, [ebp - 0x48]
call fcn.340020c0
push eax
mov ecx, dword [ebp - 0x3c]
imul ecx, ecx, 0x60
add ecx, 0x341a4af0
call fcn.340940ac
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
call fcn.340a7330
jmp 0x3407e990
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.340a7330
cmp dword [ebp - 0x10], 0
je 0x3407ec6b
mov edx, dword [ebp + 0x10]
and edx, 0x200
test edx, edx
je 0x3407ec6b
push 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.340020c0
push eax
call fcn.34004156
add esp, 0xc
mov dword [ebp - 0x54], 0
push 0
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.340020c0
push eax
lea edx, [ebp - 0x4c]
push edx
call fcn.34003d75
add esp, 0x10
mov byte [ebp - 4], 6
mov eax, dword [ebp + 0x14]
and eax, 0x2000
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x50], eax
lea ecx, [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x50]
push edx
lea ecx, [ebp - 0x4c]
call fcn.340020c0
push eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x74]
call fcn.3407dfee
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x3407ebf7
cmp dword [ebp + 0x1c], 0
je 0x3407eabc
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x54]
mov dword [edx], eax
mov ecx, 0x341a3e58
call fcn.3408c1f3
test eax, eax
je 0x3407eb03
lea ecx, [ebp - 0x60]
call fcn.340994ba
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
push str.CTSandboxMgr::CreateSandboxInstance___s__InitSandboxRegistry_fail_x1_err__lu_
push 0x34189f44
push 8
push 0x341a3e5c
call fcn.34090e9e
add esp, 0x18
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x60]
call fcn.340994e1
cmp dword [ebp - 0x54], 0x3f1
je 0x3407eb30
cmp dword [ebp - 0x54], 0x3f7
je 0x3407eb30
cmp dword [ebp - 0x54], 0x3f8
je 0x3407eb30
cmp dword [ebp - 0x54], 0x3f9
je 0x3407eb30
mov dword [ebp - 0x78], 0
jmp 0x3407eb37
mov dword [ebp - 0x78], 1
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp + 0x14]
and ecx, 0x4000
mov dword [ebp - 0x5c], ecx
cmp dword [ebp - 0x5c], 0
jne 0x3407ebf7
cmp dword [ebp - 0x58], 0
je 0x3407ebf7
push 0
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x2c]
call fcn.340020c0
push eax
call fcn.34003ef1
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x3407ebf7
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.340020c0
push eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x74]
call fcn.3407dfee
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0x20], 0
je 0x3407ebb0
mov ecx, dword [ebp + 0x20]
mov dword [ecx], 1
mov ecx, 0x341a3e58
call fcn.3408c1f3
test eax, eax
je 0x3407ebf7
lea ecx, [ebp - 0x64]
call fcn.340994ba
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x4c]
push eax
push str.CTSandboxMgr::CreateSandboxInstance_rebuild___s__InitSandboxRegistry_ret__lu_
push 0x34189ff0
push 8
push 0x341a3e5c
call fcn.34090e9e
add esp, 0x18
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x64]
call fcn.340994e1
cmp dword [ebp - 0x10], 0
jne 0x3407ec0c
cmp dword [ebp + 0x18], 0
je 0x3407ec0c
mov ecx, dword [ebp + 0x18]
mov dword [ecx], reloc.WS2_32.dll_ntohl
mov ecx, 0x341a3e58
call fcn.3408c1f3
test eax, eax
je 0x3407ec5f
lea ecx, [ebp - 0x68]
call fcn.340994ba
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push str.CTSandboxMgr::CreateSandboxInstance_InitSandboxRegistry_Class__s__Instance__s__RegFile__s__bRegUseIndex__lu__bRet__lu_
push str.InitReg
push 8
push 0x341a3e5c
call fcn.34090e9e
add esp, 0x24
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x68]
call fcn.340994e1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call fcn.340a7330
jmp 0x3407ec83
mov dword [ebp - 0x10], 0
cmp dword [ebp + 0x18], 0
je 0x3407ec83
mov ecx, dword [ebp + 0x18]
mov dword [ecx], reloc.WS2_32.dll_listen
cmp dword [ebp - 0x10], 0
jne 0x3407ec99
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x74]
call fcn.3407ed14
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.340a7330
jmp 0x3407ece0
cmp dword [ebp + 0x18], 0
je 0x3407ecb6
mov ecx, dword [ebp + 0x18]
mov dword [ecx], reloc.WS2_32.dll_closesocket
cmp dword [ebp + 0x1c], 0
je 0x3407ecc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0x1c]
mov dword [edx], eax
cmp dword [ebp - 0x24], 0
je 0x3407ece0
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1c]
call fcn.3407c304
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x70], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.3407bf68
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.34017784
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x1c