Function at 0x100160b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x1015cb84
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101b0cd0]
xor eax, esp
push eax
lea eax, [esp + 0xb4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xc8]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov esi, dword [esp + 0xc4]
mov edi, 1
mov dword [esi], vtable.XStringA.0
mov dword [esi + 0x10], edi
mov dword [esi + 4], ebx
cmp ebx, ebx
jne 0x1001611d
push edi
call fcn.10054f2b
mov dword [esi + 4], eax
mov ecx, dword [esi + 0x10]
push ecx
push ebx
push eax
call fcn.10057070
add esp, 0x10
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
push str.CLabelUniPort::MakePortName
lea eax, [esp + 0x3c]
mov dword [esp + 0x18], edi
call fcn.10018050
mov esi, dword [esp + 0xcc]
sub esp, 0x1c
mov dword [esp + 0xd8], edi
mov edi, esp
push str.portName_:___
lea edx, [esp + 0x58]
push 0x38
mov ecx, 7
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.1001ca60
add esp, 0x28
lea ecx, [esp + 0x38]
mov byte [esp + 0xbc], bl
call fcn.10018140
cmp ebp, 0x10
jne 0x1001675e
lea eax, [esp + 0x90]
push eax
call fcn.1002bd10
add esp, 4
mov ebx, dword [esp + 0xcc]
lea eax, [esp + 0x1c]
mov dword [esp + 0xbc], 2
call fcn.10017fc0
mov byte [esp + 0xbc], 3
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x100161e2
xor eax, eax
test ebp, ebp
jle 0x100161e2
mov ebx, dword [esp + 0x20]
mov cl, byte [ebx + eax]
cmp cl, 0x41
jl 0x100161d8
cmp cl, 0x5a
jg 0x100161d8
add byte [ebx + eax], 0x20
add eax, dword [esp + 0x2c]
cmp eax, ebp
jl 0x100161c3
jmp 0x100161e6
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0xb0]
push 0x2710
push eax
mov dword [esp + 0x20], 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [esp + 0xa0]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test edi, edi
jle 0x100166bc
mov ecx, dword [esp + 0x18]
push ecx
lea ecx, [esp + 0x94]
call fcn.1001c720
mov ebx, eax
lea eax, [esp + 0x74]
call fcn.10017fc0
lea ebx, [esp + 0x74]
lea esi, [esp + 0x54]
call fcn.1002b6a0
mov ebx, eax
mov byte [esp + 0xbc], 5
or dword [esp + 0x14], 2
call fcn.10015b10
push 0
sub esp, 0x1c
mov edi, eax
mov eax, esp
mov dword [esp + 0x90], esp
call fcn.10017fc0
call fcn.10020280
mov esi, eax
test esi, esi
je 0x100162a0
push esi
mov ecx, edi
call fcn.100207f0
test al, al
je 0x100162a0
mov esi, dword [esi + 0x78]
mov eax, 0x66666667
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
sete al
test al, al
jne 0x10016312
lea ebx, [esp + 0x74]
lea esi, [esp + 0x38]
call fcn.1002b6a0
mov ebx, eax
mov dword [esp + 0xbc], 6
or dword [esp + 0x14], 4
call fcn.10015b10
push 0
sub esp, 0x1c
mov edi, eax
mov eax, esp
mov dword [esp + 0x90], esp
call fcn.10017fc0
call fcn.10020280
mov esi, eax
test esi, esi
je 0x1001630e
push esi
mov ecx, edi
call fcn.100207f0
test al, al
je 0x1001630e
mov esi, dword [esi + 0x78]
mov eax, 0x66666667
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 7
sete al
test al, al
jne 0x10016312
xor bl, bl
jmp 0x10016314
mov bl, 1
test byte [esp + 0x14], 4
je 0x10016329
and dword [esp + 0x14], 0xfffffffb
lea ecx, [esp + 0x38]
call fcn.10018140
mov dword [esp + 0xbc], 4
test byte [esp + 0x14], 2
je 0x10016349
and dword [esp + 0x14], 0xfffffffd
lea ecx, [esp + 0x54]
call fcn.10018140
mov edi, dword [esp + 0x7c]
mov ebp, dword [esp + 0x78]
test bl, bl
je 0x10016627
cmp dword [esp + 0x24], 0
jne 0x100163a0
mov esi, dword [esp + 0xc4]
lea edx, [esp + 0x74]
cmp esi, edx
je 0x10016616
mov eax, edi
cdq
idiv dword [esp + 0x84]
test eax, eax
jle 0x1001643a
push eax
call fcn.100184f0
test edi, edi
jle 0x10016616
push ebp
mov eax, esi
call fcn.10018600
jmp 0x10016616
mov esi, dword [esp + 0x20]
push 0x1019ef04
push esi
call fcn.100557b0
add esp, 8
test eax, eax
je 0x100163de
push 0x1019ef04
lea eax, [esp + 0x3c]
call fcn.10018050
or dword [esp + 0x14], 8
lea eax, [esp + 0x38]
lea ebx, [esp + 0x1c]
call fcn.10019740
cmp al, 1
je 0x100163de
xor bl, bl
jmp 0x100163e0
mov bl, 1
test byte [esp + 0x14], 8
je 0x100163f5
and dword [esp + 0x14], 0xfffffff7
lea ecx, [esp + 0x38]
call fcn.10018140
test bl, bl
je 0x10016446
lea eax, [esp + 0x74]
cmp dword [esp + 0xc4], eax
je 0x10016616
mov eax, edi
cdq
idiv dword [esp + 0x84]
mov esi, dword [esp + 0xc4]
test eax, eax
jle 0x1001643a
push eax
call fcn.100184f0
test edi, edi
jle 0x10016616
push ebp
mov eax, esi
call fcn.10018600
jmp 0x10016616
push 0
call fcn.100184f0
jmp 0x10016616
push esi
push ebp
call fcn.100557b0
add esp, 8
test eax, eax
jne 0x10016469
mov eax, dword [esp + 0xc4]
lea ebx, [esp + 0x74]
call fcn.100181f0
jmp 0x10016616
lea ecx, [esp + 0x54]
push ecx
mov esi, 4
lea eax, [esp + 0x20]
call fcn.10018cb0
mov eax, dword [eax + 4]
mov ecx, str.pid_
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100164a4
test dl, dl
je 0x100164a0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100164a4
add eax, 2
add ecx, 2
test dl, dl
jne 0x10016484
xor eax, eax
jmp 0x100164a9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea ecx, [esp + 0x54]
sete bl
call fcn.10018140
test bl, bl
je 0x1001650c
push 4
lea edx, [esp + 0x3c]
push edx
xor eax, eax
lea ecx, [esp + 0x24]
call fcn.10018d50
mov byte [esp + 0xbc], 7
mov eax, dword [esp + 0x40]
cdq
idiv dword [esp + 0x48]
cmp eax, 4
jne 0x1001660d
lea eax, [esp + 0x38]
call fcn.10019c20
test al, al
je 0x1001660d
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x58]
push ecx
call fcn.1002b6c0
jmp 0x100165f3
mov eax, dword [esp + 0x24]
cdq
idiv dword [esp + 0x2c]
cmp eax, 4
jne 0x10016550
lea eax, [esp + 0x1c]
call fcn.10019c20
test al, al
je 0x10016550
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x58]
push eax
call fcn.1002b6c0
mov ebx, eax
mov eax, dword [esp + 0xcc]
add esp, 8
call fcn.100181f0
lea ecx, [esp + 0x54]
jmp 0x10016611
lea ecx, [esp + 0x54]
push ecx
lea eax, [esp + 0x20]
call fcn.10018cb0
mov ecx, 0x1019ef10
call fcn.10015f60
lea ecx, [esp + 0x54]
mov bl, al
call fcn.10018140
test bl, bl
je 0x1001658f
mov ebx, dword [esp + 0xcc]
mov eax, dword [esp + 0xc4]
call fcn.100181f0
jmp 0x10016616
push 0x1019bc42
lea eax, [esp + 0x3c]
call fcn.10018050
mov byte [esp + 0xbc], 8
call fcn.10015b10
push eax
lea ecx, [esp + 0x20]
lea eax, [esp + 0x58]
call fcn.10020730
mov ebx, eax
lea eax, [esp + 0x38]
call fcn.100181f0
lea ecx, [esp + 0x54]
call fcn.10018140
cmp dword [esp + 0x40], 0
je 0x100165e4
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x58]
push eax
call fcn.1002b6c0
jmp 0x100165f3
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x58]
push edx
call fcn.1002b760
mov ebx, eax
mov eax, dword [esp + 0xcc]
add esp, 8
call fcn.100181f0
lea ecx, [esp + 0x54]
call fcn.10018140
lea ecx, [esp + 0x38]
call fcn.10018140
mov eax, dword [esp + 0xc4]
cmp dword [eax + 8], 0
jne 0x100166ab
mov byte [esp + 0xbc], 3
test ebp, ebp
je 0x1001664e
inc edi
imul edi, dword [esp + 0x84]
push edi
push 0
push ebp
call fcn.10057070
push ebp
call fcn.10054ff5
add esp, 0x10
mov esi, dword [esp + 0x88]
test esi, esi
je 0x10016675
mov ecx, dword [esp + 0x8c]
lea edx, [ecx + ecx]
push edx
push 0
push esi
call fcn.10057070
push esi
call fcn.1004698d
add esp, 0x10
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0xb0]
push 0x2710
inc ebx
push eax
mov dword [esp + 0x20], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [esp + 0xa0]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp ebx, edi
jl 0x10016219
jmp 0x100166b4
lea ecx, [esp + 0x74]
call fcn.10018140
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x100166d8
inc ebp
imul ebp, dword [esp + 0x2c]
push ebp
push 0
push ebx
call fcn.10057070
push ebx
call fcn.10054ff5
add esp, 0x10
mov esi, dword [esp + 0x30]
test esi, esi
je 0x100166f9
mov eax, dword [esp + 0x34]
lea ecx, [eax + eax]
push ecx
push 0
push esi
call fcn.10057070
push esi
call fcn.1004698d
add esp, 0x10
mov dword [esp + 0x90], vtable.XStringAList.0
lea esi, [esp + 0x90]
mov dword [esp + 0xbc], 9
call fcn.1001c3f0
mov edx, dword [esp + 0xb0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x94]
mov byte [esp + 0xbc], 0
call fcn.1004a2ea
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xac
ret
cmp ebp, 0x20
jne 0x100167b0
mov eax, dword [esp + 0xdc]
mov ecx, dword [esp + 0xd8]
mov edx, dword [esp + 0xd4]
mov esi, dword [esp + 0xcc]
push eax
mov eax, dword [esp + 0xd4]
push ecx
push edx
push eax
sub esp, 0x1c
mov edi, esp
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0xf0]
push str.__:_d:_d:_d:_d
mov eax, esi
call fcn.10018690
add esp, 0x30
mov eax, esi
jmp 0x10016744
cmp ebp, 0x40
je 0x1001680d
cmp ebp, 2
je 0x10016800
cmp ebp, 1
je 0x10016800
cmp ebp, 4
jne 0x1001673d
mov ecx, dword [esp + 0xd0]
mov esi, dword [esp + 0xcc]
push ecx
sub esp, 0x1c
mov edi, esp
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0xe4]
push str.__:_d
mov eax, esi
call fcn.10018690
add esp, 0x24
mov eax, esi
jmp 0x10016744
cmp dword [esp + 0xd0], 0x238c
je 0x10016829
mov esi, dword [esp + 0xc4]
mov ebx, dword [esp + 0xcc]
mov eax, esi
call fcn.100181f0
mov eax, esi
jmp 0x10016744
mov esi, dword [esp + 0xcc]
push 0x238c
sub esp, 0x1c
mov edi, esp
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0xe4]
push str.__:_d
mov eax, esi
call fcn.10018690
add esp, 0x24
mov eax, esi
jmp 0x10016744