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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1234c021
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
mov dword [ebp - 0x78], ecx
cmp dword [ebp + 0x18], 0
je 0x1228f530
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
cmp dword [ebp + 0x1c], 0
je 0x1228f53f
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], 0
cmp dword [ebp + 0x20], 0
je 0x1228f54e
mov edx, dword [ebp + 0x20]
mov dword [edx], 0
push 0x20
lea ecx, [ebp - 0x24]
call fcn.122a801a
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.1228ccaa
mov byte [ebp - 4], 1
mov dword [ebp - 0x28], 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.1228ced7
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x1228f59f
jmp 0x1228f659
push 0x10c
call fcn.122ca698
add esp, 4
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x2c], ecx
cmp dword [ebp - 0x2c], 0
jne 0x1228f5c0
jmp 0x1228f659
push 0x10c
push 0
mov edx, dword [ebp - 0x2c]
push edx
call fcn.122ca640
add esp, 0xc
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov dword [eax + 8], ecx
push 0x3f
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x2c]
add eax, 0xc
push eax
call fcn.122ca6b1
add esp, 0xc
push 0x3f
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x2c]
add edx, 0x8c
push edx
call fcn.122ca6b1
add esp, 0xc
mov eax, dword [ebp - 0x78]
add eax, 0x34
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x2c]
push ecx
push 0
mov edx, dword [ebp - 0x78]
add edx, 0x28
push edx
call fcn.1228950b
add esp, 0xc
mov eax, dword [ebp - 0x78]
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 - 0x78]
call fcn.122911c0
xor eax, eax
test eax, eax
jne 0x1228f581
cmp dword [ebp - 0x10], 0
je 0x1228fa79
push 0
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [ebp - 0x78]
call fcn.1228ecfa
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.12212020
test eax, eax
jne 0x1228fa3f
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x30]
call fcn.12212010
push eax
lea edx, [ebp - 0x44]
push edx
call fcn.12213be4
add esp, 0x10
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
call fcn.12212010
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x1228f747
lea ecx, [ebp - 0x44]
call fcn.12212010
push eax
call fcn.1221168a
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x1228f700
cmp dword [ebp + 0x18], 0
je 0x1228f6ef
mov eax, dword [ebp + 0x18]
mov dword [eax], reloc.WS2_32.dll_listen
cmp dword [ebp + 0x1c], 0
je 0x1228f700
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
mov ecx, 0x123af970
call fcn.1229c4e3
test eax, eax
je 0x1228f747
lea ecx, [ebp - 0x48]
call fcn.122a7faa
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x44]
push eax
push str.CTSandboxMgr::CreateSandboxInstance_MySHCreateDirectory___s__bRet__lu_
push 0x123961a8
push 8
push 0x123af974
call fcn.122a118e
add esp, 0x18
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
call fcn.122a7fd1
mov ecx, dword [0x123961b8]
mov dword [ebp - 0x38], ecx
mov edx, dword [0x123961bc]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x40], 0
jmp 0x1228f76b
mov eax, dword [ebp - 0x40]
add eax, 1
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0x1a
jge 0x1228f7dd
mov ecx, dword [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0x40]
imul ecx, ecx, 0x60
add ecx, 0x123b05f0
call fcn.12291950
mov edx, dword [ebp - 0x40]
add edx, 0x41
mov word [ebp - 0x38], dx
lea ecx, [ebp - 0x44]
call fcn.12212010
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x4c]
push ecx
call fcn.12212799
mov ecx, eax
call fcn.12218777
mov byte [ebp - 4], 5
push 1
push 0x47
lea ecx, [ebp - 0x4c]
call fcn.12212010
push eax
mov ecx, dword [ebp - 0x40]
imul ecx, ecx, 0x60
add ecx, 0x123b05f0
call fcn.122a3ce9
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4c]
call fcn.122b5d40
jmp 0x1228f762
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.122b5d40
cmp dword [ebp - 0x10], 0
je 0x1228fa3d
mov edx, dword [ebp + 0x10]
and edx, 0x200
test edx, edx
je 0x1228fa3d
push 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x30]
call fcn.12212010
push eax
call fcn.122140a6
add esp, 0xc
mov dword [ebp - 0x58], 0
push 0
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x30]
call fcn.12212010
push eax
lea edx, [ebp - 0x50]
push edx
call fcn.12213cc5
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 - 0x54], eax
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x54]
push edx
lea ecx, [ebp - 0x50]
call fcn.12212010
push eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x78]
call fcn.1228edbe
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x1228f9c9
cmp dword [ebp + 0x1c], 0
je 0x1228f88e
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x58]
mov dword [edx], eax
mov ecx, 0x123af970
call fcn.1229c4e3
test eax, eax
je 0x1228f8d5
lea ecx, [ebp - 0x64]
call fcn.122a7faa
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x50]
push edx
push str.CTSandboxMgr::CreateSandboxInstance___s__InitSandboxRegistry_fail_x1_err__lu_
push 0x1239625c
push 8
push 0x123af974
call fcn.122a118e
add esp, 0x18
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x64]
call fcn.122a7fd1
cmp dword [ebp - 0x58], 0x3f1
je 0x1228f902
cmp dword [ebp - 0x58], 0x3f7
je 0x1228f902
cmp dword [ebp - 0x58], 0x3f8
je 0x1228f902
cmp dword [ebp - 0x58], 0x3f9
je 0x1228f902
mov dword [ebp - 0x7c], 0
jmp 0x1228f909
mov dword [ebp - 0x7c], 1
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp + 0x14]
and ecx, 0x4000
mov dword [ebp - 0x60], ecx
cmp dword [ebp - 0x60], 0
jne 0x1228f9c9
cmp dword [ebp - 0x5c], 0
je 0x1228f9c9
push 0
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x30]
call fcn.12212010
push eax
call fcn.12213e41
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1228f9c9
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x50]
call fcn.12212010
push eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x78]
call fcn.1228edbe
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0x20], 0
je 0x1228f982
mov ecx, dword [ebp + 0x20]
mov dword [ecx], 1
mov ecx, 0x123af970
call fcn.1229c4e3
test eax, eax
je 0x1228f9c9
lea ecx, [ebp - 0x68]
call fcn.122a7faa
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x50]
push eax
push str.CTSandboxMgr::CreateSandboxInstance_rebuild___s__InitSandboxRegistry_ret__lu_
push 0x12396308
push 8
push 0x123af974
call fcn.122a118e
add esp, 0x18
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x68]
call fcn.122a7fd1
cmp dword [ebp - 0x10], 0
jne 0x1228f9de
cmp dword [ebp + 0x18], 0
je 0x1228f9de
mov ecx, dword [ebp + 0x18]
mov dword [ecx], reloc.WS2_32.dll_ntohl
mov ecx, 0x123af970
call fcn.1229c4e3
test eax, eax
je 0x1228fa31
lea ecx, [ebp - 0x6c]
call fcn.122a7faa
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x50]
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 0x123af974
call fcn.122a118e
add esp, 0x24
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x6c]
call fcn.122a7fd1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
call fcn.122b5d40
jmp 0x1228fa55
mov dword [ebp - 0x10], 0
cmp dword [ebp + 0x18], 0
je 0x1228fa55
mov ecx, dword [ebp + 0x18]
mov dword [ecx], reloc.WS2_32.dll_listen
cmp dword [ebp - 0x10], 0
jne 0x1228fa6b
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x78]
call fcn.1228fae6
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.122b5d40
jmp 0x1228fab2
cmp dword [ebp + 0x18], 0
je 0x1228fa88
mov ecx, dword [ebp + 0x18]
mov dword [ecx], reloc.WS2_32.dll_closesocket
cmp dword [ebp + 0x1c], 0
je 0x1228fa99
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0x1c]
mov dword [edx], eax
cmp dword [ebp - 0x28], 0
je 0x1228fab2
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
call fcn.1228d0c4
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x74], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.1228cd28
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.122a8050
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x1c