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

Disassembly:
push 0xffffffffffffffff
push 0x546b31
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
mov ebx, dword [esp + 0x70]
test ebx, ebx
mov dword [esp + 0x58], ecx
je 0x4ba916
push ebp
push esi
push edi
jmp 0x4ba232
mov ebx, dword [esp + 0x10]
push 0x5881a4
push ebx
call fcn.004ee070
mov edx, eax
add esp, 8
test edx, edx
mov dword [esp + 0x10], edx
je 0x4ba257
mov esi, edx
sub esi, ebx
add edx, 2
mov dword [esp + 0x10], edx
jmp 0x4ba265
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
test esi, esi
je 0x4ba8f7
lea edi, [esi + 1]
mov ebp, ebx
push edi
call fcn.004ee7cf
mov ecx, edi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, esi
mov esi, ebp
mov eax, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test ebx, ebx
rep movsb byte es:[edi], byte [esi]
je 0x4ba8f3
mov ecx, dword [0x591288]
mov dword [esp + 0x7c], ecx
push ebx
lea ecx, [esp + 0x80]
mov dword [esp + 0x78], 0
call fcn.0050d586
push ebx
call fcn.004ee909
mov eax, dword [0x591288]
add esp, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
push 0x5881a0
lea ecx, [esp + 0x80]
mov byte [esp + 0x78], 4
mov ebp, 6
call fcn.00505d35
mov esi, eax
test esi, esi
jle 0x4ba8aa
lea edx, [esp + 0x24]
push esi
push edx
lea ecx, [esp + 0x84]
call fcn.00505c45
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x78], 5
call fcn.0050d536
lea ecx, [esp + 0x24]
mov byte [esp + 0x74], 4
call fcn.0050d3fd
mov eax, dword [esp + 0x7c]
lea ecx, [esp + 0x28]
mov eax, dword [eax - 8]
sub eax, esi
dec eax
push eax
push ecx
lea ecx, [esp + 0x84]
call fcn.00505bc9
push eax
lea ecx, [esp + 0x80]
mov byte [esp + 0x78], 6
call fcn.0050d536
lea ecx, [esp + 0x28]
mov byte [esp + 0x74], 4
call fcn.0050d3fd
push 0x58b598
lea ecx, [esp + 0x80]
call fcn.00505d35
mov esi, eax
test esi, esi
jle 0x4ba8aa
lea edx, [esp + 0x2c]
push esi
push edx
lea ecx, [esp + 0x84]
call fcn.00505c45
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x78], 7
call fcn.0050d536
lea ecx, [esp + 0x2c]
mov byte [esp + 0x74], 4
call fcn.0050d3fd
mov eax, dword [esp + 0x7c]
lea ecx, [esp + 0x30]
mov eax, dword [eax - 8]
sub eax, esi
dec eax
push eax
push ecx
lea ecx, [esp + 0x84]
call fcn.00505bc9
push eax
lea ecx, [esp + 0x80]
mov byte [esp + 0x78], 8
call fcn.0050d536
lea ecx, [esp + 0x30]
mov byte [esp + 0x74], 4
call fcn.0050d3fd
mov edx, dword [esp + 0x14]
push edx
call fcn.004ee2a9
mov edi, eax
add esp, 4
test edi, edi
jle 0x4ba8aa
push 0x58e1e4
lea ecx, [esp + 0x80]
xor esi, esi
call fcn.00505d35
test eax, eax
jge 0x4ba466
push 0x58e1e0
lea ecx, [esp + 0x80]
mov esi, 1
call fcn.00505d35
test eax, eax
jge 0x4ba466
push str.SOCKS
lea ecx, [esp + 0x80]
mov esi, 2
call fcn.00505d35
test eax, eax
jl 0x4ba8aa
sub esi, 0
je 0x4ba65c
mov ecx, dword [esp + 0x7c]
dec esi
mov ecx, dword [ecx - 8]
je 0x4ba507
sub ecx, eax
lea edx, [esp + 0x34]
sub ecx, 5
push ecx
push edx
lea ecx, [esp + 0x84]
call fcn.00505bc9
push eax
lea ecx, [esp + 0x80]
mov byte [esp + 0x78], 0x10
call fcn.0050d536
lea ecx, [esp + 0x34]
mov byte [esp + 0x74], 4
call fcn.0050d3fd
mov ecx, dword [esp + 0x7c]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4ba4c3
xor bl, bl
jmp 0x4ba4c5
mov bl, byte [ecx]
dec eax
lea ecx, [esp + 0x7c]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.00505bc9
push eax
lea ecx, [esp + 0x80]
mov byte [esp + 0x78], 0x11
call fcn.0050d536
lea ecx, [esp + 0x38]
mov byte [esp + 0x74], 4
call fcn.0050d3fd
sub bl, 0x34
neg bl
sbb ebx, ebx
and ebx, 0xfffffffe
add ebx, 9
jmp 0x4ba6e6
sub ecx, eax
lea edx, [esp + 0x3c]
sub ecx, 3
push ecx
push edx
lea ecx, [esp + 0x84]
call fcn.00505bc9
push eax
lea ecx, [esp + 0x80]
mov byte [esp + 0x78], 0xb
call fcn.0050d536
lea ecx, [esp + 0x3c]
mov byte [esp + 0x74], 4
call fcn.0050d3fd
mov ecx, dword [esp + 0x7c]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4ba54d
xor cl, cl
jmp 0x4ba54f
mov cl, byte [ecx]
movsx ecx, cl
add ecx, 0xffffffcf
cmp ecx, 3
ja case.default.0x4ba55e
jmp dword [ecx*4 + 0x4ba92c]
dec eax
lea ecx, [esp + 0x7c]
push eax
lea eax, [esp + 0x44]
push eax
mov ebx, 1
call fcn.00505bc9
push eax
lea ecx, [esp + 0x80]
mov byte [esp + 0x78], 0xc
call fcn.0050d536
lea ecx, [esp + 0x40]
mov byte [esp + 0x74], 4
call fcn.0050d3fd
jmp 0x4ba6e6
dec eax
lea ecx, [esp + 0x44]
push eax
push ecx
lea ecx, [esp + 0x84]
mov ebx, 4
call fcn.00505bc9
push eax
lea ecx, [esp + 0x80]
mov byte [esp + 0x78], 0xd
call fcn.0050d536
lea ecx, [esp + 0x44]
mov byte [esp + 0x74], bl
call fcn.0050d3fd
jmp 0x4ba6e6
dec eax
lea edx, [esp + 0x48]
push eax
push edx
lea ecx, [esp + 0x84]
mov ebx, 5
call fcn.00505bc9
push eax
lea ecx, [esp + 0x80]
mov byte [esp + 0x78], 0xe
call fcn.0050d536
lea ecx, [esp + 0x48]
mov byte [esp + 0x74], 4
call fcn.0050d3fd
jmp 0x4ba6e6
dec eax
lea ecx, [esp + 0x7c]
push eax
lea eax, [esp + 0x50]
push eax
mov ebx, 6
call fcn.00505bc9
push eax
lea ecx, [esp + 0x80]
mov byte [esp + 0x78], 0xf
call fcn.0050d536
lea ecx, [esp + 0x4c]
mov byte [esp + 0x74], 4
call fcn.0050d3fd
jmp 0x4ba6e6
mov ebx, 2
jmp 0x4ba6e6
mov ecx, dword [esp + 0x7c]
lea edx, [esp + 0x50]
mov ecx, dword [ecx - 8]
sub ecx, eax
sub ecx, 4
push ecx
push edx
lea ecx, [esp + 0x84]
call fcn.00505bc9
push eax
lea ecx, [esp + 0x80]
mov byte [esp + 0x78], 9
call fcn.0050d536
lea ecx, [esp + 0x50]
mov byte [esp + 0x74], 4
call fcn.0050d3fd
mov ecx, dword [esp + 0x7c]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4ba6e1
cmp byte [ecx], 0x31
jne 0x4ba6e1
dec eax
lea ecx, [esp + 0x7c]
push eax
lea eax, [esp + 0x58]
push eax
mov ebx, 8
call fcn.00505bc9
push eax
lea ecx, [esp + 0x80]
mov byte [esp + 0x78], 0xa
call fcn.0050d536
lea ecx, [esp + 0x54]
mov byte [esp + 0x74], 4
call fcn.0050d3fd
jmp 0x4ba6e6
mov ebx, 3
mov ecx, dword [esp + 0x7c]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4ba7c6
push 0x5881a0
lea ecx, [esp + 0x80]
call fcn.00505d35
test eax, eax
jne 0x4ba7c6
mov edx, dword [esp + 0x7c]
lea ecx, [esp + 0x7c]
mov eax, dword [edx - 8]
dec eax
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.00505bc9
push eax
lea ecx, [esp + 0x80]
mov byte [esp + 0x78], 0x12
call fcn.0050d536
lea ecx, [esp + 0x58]
mov byte [esp + 0x74], 4
call fcn.0050d3fd
push 0x5881a0
lea ecx, [esp + 0x80]
call fcn.00505d35
mov esi, eax
test esi, esi
jle 0x4ba7c6
lea ecx, [esp + 0x5c]
push esi
push ecx
lea ecx, [esp + 0x84]
call fcn.00505c45
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x78], 0x13
call fcn.0050d536
lea ecx, [esp + 0x5c]
mov byte [esp + 0x74], 4
call fcn.0050d3fd
mov edx, dword [esp + 0x7c]
lea ecx, [esp + 0x7c]
mov eax, dword [edx - 8]
sub eax, esi
dec eax
push eax
lea eax, [esp + 0x64]
push eax
call fcn.00505bc9
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x78], 0x14
call fcn.0050d536
lea ecx, [esp + 0x60]
mov byte [esp + 0x74], 4
call fcn.0050d3fd
mov ebp, 7
push 0x20
call fcn.0050d138
add esp, 4
test eax, eax
je 0x4ba804
mov ecx, dword [0x591288]
mov esi, eax
mov dword [eax], ecx
mov edx, dword [0x591288]
mov dword [eax + 4], edx
mov ecx, dword [0x591288]
mov dword [eax + 8], ecx
mov edx, dword [0x591288]
mov dword [eax + 0xc], edx
mov ecx, dword [0x591288]
mov dword [eax + 0x10], ecx
jmp 0x4ba806
xor esi, esi
mov dword [esi + 0x14], edi
lea edi, [esi + 4]
lea edx, [esp + 0x20]
mov ecx, edi
push edx
mov word [esi + 0x18], bx
mov dword [esi + 0x1c], ebp
call fcn.0050d536
lea ebx, [esi + 8]
lea eax, [esp + 0x1c]
push eax
mov ecx, ebx
call fcn.0050d536
lea ecx, [esp + 0x18]
lea ebp, [esi + 0xc]
push ecx
mov ecx, ebp
call fcn.0050d536
push 1
push esi
call fcn.0042eff0
mov ecx, eax
call fcn.0043b050
test eax, eax
je 0x4ba85c
mov ecx, dword [esp + 0x64]
push esi
call fcn.004ba940
jmp 0x4ba8aa
test esi, esi
mov dword [esp + 0x68], esi
je 0x4ba8aa
lea ecx, [esi + 0x10]
mov byte [esp + 0x74], 0x18
call fcn.0050d3fd
mov ecx, ebp
mov byte [esp + 0x74], 0x17
call fcn.0050d3fd
mov ecx, ebx
mov byte [esp + 0x74], 0x16
call fcn.0050d3fd
mov ecx, edi
mov byte [esp + 0x74], 0x15
call fcn.0050d3fd
mov ecx, esi
mov byte [esp + 0x74], 4
call fcn.0050d3fd
push esi
call fcn.0050d161
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 3
call fcn.0050d3fd
lea ecx, [esp + 0x18]
mov byte [esp + 0x74], 2
call fcn.0050d3fd
lea ecx, [esp + 0x1c]
mov byte [esp + 0x74], 1
call fcn.0050d3fd
lea ecx, [esp + 0x20]
mov byte [esp + 0x74], 0
call fcn.0050d3fd
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0050d3fd
mov edx, dword [esp + 0x10]
test edx, edx
jne 0x4ba22e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
add esp, 0x68
ret 8
mov ecx, dword [esp + 0x60]
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x68
ret 8