Function at 0x1105f830
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x11182462
mov eax, dword fs:[0]
push eax
sub esp, 0x530
mov eax, dword [0x111ec774]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov esi, dword [sym.imp.uSEr32.dll_wsprintfA]
push edi
mov ebx, ecx
push 0x111e5ccc
lea ecx, [ebp - 0x214]
push 0x1119aa48
push ecx
mov dword [ebp - 0x534], ebx
mov dword [ebp - 0x538], edi
mov dword [ebp - 0x530], eax
call esi
push edi
push 0x111e5cf4
lea edx, [ebp - 0x418]
push 0x1119aa48
push edx
call esi
mov eax, dword [ebx + 8]
mov ebx, 0x10
add esp, 0x20
test byte [eax], bl
je 0x1105f8d7
mov ecx, dword [ebp - 0x530]
lea edx, [ebp - 0x214]
push 0
push edx
mov dword [ecx], reloc.wsOcK32.dll_bind
call fcn.11142e60
add esp, 8
jmp 0x1105fd3f
mov byte [ebp - 0x318], 0
call fcn.11143a20
cmp eax, 0x14
mov eax, 0x111994f4
jge 0x1105f8f2
mov eax, 0x111a11b0
push eax
lea eax, [ebp - 0x51c]
push 0x111a11a4
push eax
call esi
add esp, 0xc
lea ecx, [ebp - 0x528]
call fcn.110ed130
push 0x20019
lea ecx, [ebp - 0x214]
push ecx
push reloc.wsOcK32.dll_bind
lea ecx, [ebp - 0x528]
mov dword [ebp - 4], 0
call fcn.110ed520
test eax, eax
jne 0x1105fad0
lea edx, [ebp - 0x52c]
push edx
lea eax, [ebp - 0x318]
push eax
lea ecx, [ebp - 0x51c]
push ecx
lea ecx, [ebp - 0x528]
mov dword [ebp - 0x52c], 0x104
call fcn.110ed720
test eax, eax
jne 0x1105fad0
push 0x104
lea edx, [ebp - 0x114]
push edx
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.KeRneL32.DLl_ExpandEnvironmentStringsA]
lea ecx, [ebp - 0x318]
push ecx
call fcn.11163ca7
mov esi, eax
mov edi, 1
add esp, 4
cmp esi, edi
jle 0x1105f9a5
or dword [0x111ee6e4], edi
lea edx, [ebp - 0x114]
push 0x2c
push edx
call fcn.11081d30
add esp, 8
test eax, eax
je 0x1105f9d5
mov byte [eax], 0
movsx eax, byte [eax + 1]
push eax
call fcn.11166654
add esp, 4
cmp eax, 0x52
jne 0x1105f9d5
or dword [0x111ee6e4], edi
test esi, esi
jne 0x1105fc23
lea ecx, [ebp - 0x114]
push 0x1119ee34
push ecx
call fcn.11081e70
add esp, 8
test eax, eax
je 0x1105fc23
push 4
lea edx, [ebp - 0x114]
push 0x111a119c
push edx
call fcn.11081f20
add esp, 0xc
test eax, eax
jne 0x1105fa40
or dword [0x111ee6e4], ebx
cmp byte [ebp - 0x110], 0x5c
mov edi, reloc.wsOcK32.dll_bind
lea esi, [ebp - 0x110]
jne 0x1105fa33
lea esi, [ebp - 0x10f]
cmp byte [esi], 0
jne 0x1105fa74
lea esi, [ebp - 0x214]
jmp 0x1105fa74
push 4
lea eax, [ebp - 0x114]
push 0x111a1194
push eax
call fcn.11081f20
add esp, 0xc
test eax, eax
jne 0x1105fad0
cmp byte [ebp - 0x110], 0x5c
mov edi, reloc.wsOcK32.dll_accept
lea esi, [ebp - 0x110]
jne 0x1105fa74
lea esi, [ebp - 0x10f]
lea ecx, [ebp - 0x520]
call fcn.110ed130
push 0x20019
push esi
push edi
lea ecx, [ebp - 0x520]
mov byte [ebp - 4], 1
call fcn.110ed520
test eax, eax
jne 0x1105fac1
mov ecx, dword [ebp - 0x530]
push eax
push esi
mov dword [ecx], edi
call fcn.11142e60
add esp, 8
lea ecx, [ebp - 0x520]
mov esi, eax
mov byte [ebp - 4], 0
call fcn.110edb10
jmp 0x1105fd2b
lea ecx, [ebp - 0x520]
mov byte [ebp - 4], 0
call fcn.110edb10
cmp dword [ebp + 0x10], 0
je 0x1105fc54
push 0x111e5d0c
lea ecx, [ebp - 0x418]
push ecx
push 0x1119aa48
call fcn.11147ad0
mov ebx, eax
add esp, 0xc
mov dword [ebp - 0x53c], ebx
lea ecx, [ebp - 0x520]
mov byte [ebp - 4], 2
call fcn.110ed130
push 0x20019
push ebx
push reloc.wsOcK32.dll_accept
lea ecx, [ebp - 0x520]
mov byte [ebp - 4], 3
call fcn.110ed520
test eax, eax
jne 0x1105fbea
xor esi, esi
push esi
lea edx, [ebp - 0x52c]
push edx
lea eax, [ebp - 0x114]
push eax
push esi
lea ecx, [ebp - 0x520]
mov dword [ebp - 0x52c], 0x104
call fcn.110ed140
test eax, eax
jne 0x1105fbea
lea ecx, [ebp - 0x524]
call fcn.110ed130
mov edx, dword [ebp - 0x520]
push 0x20019
lea ecx, [ebp - 0x114]
push ecx
push edx
lea ecx, [ebp - 0x524]
mov byte [ebp - 4], 4
call fcn.110ed520
test eax, eax
jne 0x1105fbac
push eax
push 0x111a1180
lea ecx, [ebp - 0x524]
call fcn.110ed5d0
mov edi, eax
call fcn.11143a20
cmp edi, eax
je 0x1105fc43
lea ecx, [ebp - 0x524]
mov byte [ebp - 4], 3
call fcn.110edb10
push 0
lea eax, [ebp - 0x52c]
push eax
lea ecx, [ebp - 0x114]
push ecx
inc esi
push esi
lea ecx, [ebp - 0x520]
mov dword [ebp - 0x52c], 0x104
call fcn.110ed140
test eax, eax
je 0x1105fb5b
call fcn.11143a20
mov edx, dword [ebp - 0x538]
mov ecx, dword [ebp - 0x534]
push eax
push edx
call fcn.1105f200
lea ecx, [ebp - 0x520]
mov byte [ebp - 4], 2
call fcn.110edb10
push ebx
mov byte [ebp - 4], 0
call fcn.11162777
add esp, 4
jmp 0x1105fce1
mov edx, dword [ebp - 0x530]
or dword [0x111ee6e4], ebx
push 0
lea eax, [ebp - 0x214]
mov dword [edx], reloc.wsOcK32.dll_bind
push eax
jmp 0x1105fd21
lea ecx, [ebp - 0x524]
mov byte [ebp - 4], 3
call fcn.110edb10
jmp 0x1105fc02
lea ecx, [ebp - 0x524]
call fcn.110ed130
push 0x20019
lea eax, [ebp - 0x418]
push eax
push reloc.wsOcK32.dll_accept
lea ecx, [ebp - 0x524]
mov byte [ebp - 4], 5
call fcn.110ed520
test eax, eax
je 0x1105fcd2
push 0x20019
lea ecx, [ebp - 0x214]
push ecx
push reloc.wsOcK32.dll_bind
lea ecx, [ebp - 0x524]
call fcn.110ed520
test eax, eax
jne 0x1105fcd2
mov edx, dword [ebp - 0x530]
push eax
lea eax, [ebp - 0x214]
push eax
mov dword [edx], reloc.wsOcK32.dll_bind
call fcn.11142e60
add esp, 8
lea ecx, [ebp - 0x524]
mov esi, eax
mov byte [ebp - 4], 0
call fcn.110edb10
jmp 0x1105fd2b
lea ecx, [ebp - 0x524]
mov byte [ebp - 4], 0
call fcn.110edb10
push 0x111a1154
push 6
call fcn.1102ad70
add esp, 4
push eax
call fcn.11081e70
add esp, 8
test eax, eax
jne 0x1105fd0c
push 0x111a116c
push 6
call fcn.11026e40
add esp, 8
mov ecx, dword [ebp - 0x530]
push 0
lea edx, [ebp - 0x418]
mov dword [ecx], reloc.wsOcK32.dll_accept
push edx
call fcn.11142e60
mov esi, eax
add esp, 8
lea ecx, [ebp - 0x528]
mov dword [ebp - 4], 0xffffffff
call fcn.110edb10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.11162bb7
mov esp, ebp
pop ebp
ret 0xc