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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x6c
mov eax, dword [ecx + 0x40]
mov edi, edx
mov esi, ecx
cmp eax, 4
push 3
pop ebp
je 0x595ac3
cmp eax, 3
jne 0x595ae6
mov ecx, dword [esi + 0x58]
mov edx, dword [esi + 0x5c]
add ecx, 0xfffffffe
adc edx, 0xffffffff
xor eax, eax
inc eax
cmp ecx, 4
sbb edx, 0
cmovb eax, ecx
cmp eax, 2
je 0x595af5
cmp eax, 3
je 0x595adc
jmp 0x595ae3
mov eax, dword [esi + 0x58]
mov ecx, dword [esi + 0x5c]
add eax, 0xfffffffe
adc ecx, 0xffffffff
xor edx, edx
cmp ebp, eax
sbb edx, ecx
jb 0x595ae3
cmp eax, 2
jne 0x595ae3
mov ecx, esi
call fcn.004e87e4
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
or eax, ecx
je 0x595b26
add esp, 0x6c
pop esi
pop edi
pop ebx
pop ebp
ret
cmp byte [esi + 0x9a], 1
jne 0x595b5a
lea ecx, [esi + 0x78]
call fcn.0058aa8a
mov byte [esi + 0x78], 0xb
and dword [esi + 0x44], 0
and dword [esi + 0x40], 0
and dword [esi + 0x5c], 0
mov dword [esi + 0x58], 2
mov word [esi + 0x99], 1
mov eax, dword [esi + 0x58]
mov ecx, dword [esi + 0x5c]
add eax, 0xfffffffe
adc ecx, 0xffffffff
xor edx, edx
cmp ebp, eax
sbb edx, ecx
jb 0x595aed
cmp eax, 1
je 0x595aed
cmp byte [esi + 0xf1], 0
jne 0x595aed
cmp dword [esi + 0xe4], 0
je 0x595bd0
mov byte [esi + 0x99], 1
jmp 0x595aed
mov eax, dword [0xa70a24]
test eax, eax
jne 0x595adc
mov ecx, 0xa70474
call fcn.0040e00b
test al, al
je 0x595adc
mov ecx, dword [0xa70474]
movzx edx, al
call fcn.00605cf4
test al, al
je 0x595adc
mov ecx, dword [0xa70474]
lea eax, [esi + 0x9a]
mov dword [esp + 0x18], eax
mov edx, dword [ecx + 0x20]
lea eax, [ecx + 0x1c]
mov dword [esp + 0x1c], eax
test edx, edx
je 0x595d21
mov eax, dword [ecx + 0x1c]
mov ebx, dword [ecx + 0x24]
mov ecx, dword [ecx + 0x28]
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
and dword [esp + 0x10], 0
jmp 0x595d23
lea ebx, [esp + 0x28]
lea edx, [esi + 0xa0]
mov ecx, ebx
push edi
call fcn.00595f38
pop eax
movzx eax, byte [ebx]
cmp eax, 4
je 0x595c5c
cmp eax, 5
jne 0x595c8d
mov eax, dword [0xa70a24]
test eax, eax
jne 0x595aed
mov ecx, 0xa70378
call fcn.0040e00b
test al, al
je 0x595aed
mov ecx, dword [0xa70378]
movzx edx, al
call fcn.00605cf4
test al, al
je 0x595aed
mov ecx, dword [0xa70378]
mov edx, dword [ecx + 0x20]
lea ebx, [ecx + 0x1c]
test edx, edx
je 0x595e0c
mov eax, dword [ecx + 0x1c]
mov esi, dword [ecx + 0x24]
mov ecx, dword [ecx + 0x28]
mov dword [esp + 4], edx
mov dword [esp + 8], esi
mov dword [esp + 0xc], ecx
and dword [esp + 0x10], 0
jmp 0x595e0e
cmp dword [esp + 0x2c], 0
jne 0x595b51
mov eax, dword [0xa70a24]
test eax, eax
je 0x595da5
cmp byte [esi + 0x9a], 0
je 0x595e00
mov ecx, esi
call fcn.004e88c7
jmp 0x595aed
movsd xmm0, qword [esp + 0x28]
movsd qword [esp + 0x20], xmm0
mov eax, dword [0xa70a24]
test eax, eax
je 0x595cce
mov ecx, esi
call fcn.004e87e4
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
call fcn.004e761c
lea ecx, [esi + 0x8c]
mov edi, eax
call fcn.0058ab59
mov dword [esi + 0x8c], edi
jmp 0x595b51
mov ecx, 0xa70384
call fcn.0040e00b
test al, al
je 0x595ca2
mov ecx, dword [0xa70384]
movzx edx, al
call fcn.00605cf4
test al, al
je 0x595ca2
mov ecx, dword [0xa70384]
mov edx, dword [ecx + 0x20]
lea ebp, [ecx + 0x1c]
test edx, edx
je 0x595e6c
mov eax, dword [ecx + 0x1c]
mov edi, dword [ecx + 0x24]
mov ecx, dword [ecx + 0x28]
mov dword [esp + 4], edx
mov dword [esp + 8], edi
mov dword [esp + 0xc], ecx
and dword [esp + 0x10], 0
jmp 0x595e6e
xor eax, eax
mov ebx, esp
lea ecx, [esp + 0x4c]
mov dword [ebx], eax
mov edx, ebx
push 0xa015c8
call fcn.0057917a
pop eax
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x3c]
mov dword [ebx], str.try_keep_alive__:_could_keep_alive__but_status_
mov dword [eax], str.roleclient
mov dword [eax + 4], fcn.0042d43d
mov dword [eax + 8], ecx
mov dword [eax + 0xc], 0x4e85f4
push 2
pop ecx
mov dword [ebx + 4], ecx
and dword [ebx + 0x10], 0
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], ecx
lea eax, [esp + 0x30]
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x60]
mov dword [eax], ecx
mov ecx, dword [esp + 0x1c]
mov dword [edx], eax
mov dword [edx + 4], 1
mov dword [eax + 4], ebx
mov dword [eax + 8], 0x9fd8ec
mov dword [edx + 8], ecx
mov ecx, dword [0xa70474]
call fcn.00606f01
jmp 0x595adc
mov ecx, 0xa70390
call fcn.0040e00b
test al, al
je 0x595c74
mov ecx, dword [0xa70390]
movzx edx, al
call fcn.00605cf4
test al, al
je 0x595c74
mov ecx, dword [0xa70390]
mov edx, dword [ecx + 0x20]
lea ebp, [ecx + 0x1c]
test edx, edx
je 0x595ed8
mov eax, dword [ecx + 0x1c]
mov edi, dword [ecx + 0x24]
mov ecx, dword [ecx + 0x28]
mov dword [esp + 4], edx
mov dword [esp + 8], edi
mov dword [esp + 0xc], ecx
and dword [esp + 0x10], 0
jmp 0x595eda
mov ecx, esi
call fcn.004e87e4
jmp 0x595aed
xor eax, eax
mov esi, esp
lea edi, [esp + 0x4c]
mov dword [esi], eax
mov ecx, edi
mov edx, esi
push 0xa010c8
call fcn.0057917a
pop eax
xor eax, eax
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x30]
mov dword [esi], str.maybe_notify__read_from_io_blocked
inc eax
mov dword [ecx], edi
mov dword [ecx + 4], esi
mov dword [edx], ecx
mov dword [ecx + 8], 0x9fd8ec
mov ecx, dword [0xa70378]
mov dword [esi + 4], eax
and dword [esi + 0x10], 0
mov dword [esi + 8], str.dest_is_out_of_bounds
and dword [esi + 0xc], 0
mov dword [edx + 4], eax
mov dword [edx + 8], ebx
call fcn.00606f01
jmp 0x595aed
xor eax, eax
mov edi, esp
lea ebx, [esp + 0x4c]
mov dword [edi], eax
mov ecx, ebx
mov edx, edi
push 0xa01104
call fcn.0057917a
pop eax
lea eax, [esp + 0x20]
lea ecx, [esp + 0x60]
mov dword [edi], str.maybe_notify__read_from_io_error:
lea edx, [esp + 0x30]
mov dword [ecx], eax
xor eax, eax
mov dword [ecx + 4], fcn.005e2620
inc eax
mov dword [edi + 4], eax
and dword [edi + 0x10], 0
mov dword [edi + 8], ecx
lea ecx, [esp + 0x3c]
mov dword [edi + 0xc], eax
mov dword [ecx], ebx
mov dword [ecx + 4], edi
mov dword [edx], ecx
mov dword [ecx + 8], 0x9fd8ec
mov ecx, dword [0xa70384]
mov dword [edx + 4], eax
mov dword [edx + 8], ebp
call fcn.00606f01
jmp 0x595ca2
xor eax, eax
mov edi, esp
lea ebx, [esp + 0x4c]
mov dword [edi], eax
mov ecx, ebx
mov edx, edi
push 0xa01140
call fcn.0057917a
pop eax
xor eax, eax
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x30]
mov dword [edi], str.maybe_notify__read_eof
inc eax
mov dword [ecx], ebx
mov dword [ecx + 4], edi
mov dword [edx], ecx
mov dword [ecx + 8], 0x9fd8ec
mov ecx, dword [0xa70390]
mov dword [edi + 4], eax
and dword [edi + 0x10], 0
mov dword [edi + 8], str.dest_is_out_of_bounds
and dword [edi + 0xc], 0
mov dword [edx + 4], eax
mov dword [edx + 8], ebp
call fcn.00606f01
jmp 0x595c74