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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xd8
mov edi, esp
mov esi, edx
mov edx, ecx
mov ecx, edi
call fcn.004c8758
mov ecx, dword [edi]
mov ebx, dword [edi + 4]
mov eax, ecx
mov al, byte [edi + 8]
test ecx, ecx
mov dword [esp + 0xc0], ecx
je 0x59be36
movzx edx, al
mov ecx, ebx
jmp 0x59c680
mov edi, esp
mov edx, esi
mov byte [esp + 0x2b], al
mov ecx, edi
call fcn.00438e75
mov ecx, edi
mov edx, 0xa00134
call fcn.0058b89a
cmp byte [ebx + 0x98], 3
mov dword [esp + 0xa4], eax
mov byte [esp + 0x2a], dl
mov dword [esp + 0x1c], ebx
jne 0x59beb8
mov eax, dword [esp + 0x1c]
lea edi, [esp + 0x30]
lea esi, [eax + 0x98]
push 0xb
pop edx
mov ecx, edi
push 0x2a
push str.connection_closed_because_of_a_broken_pipe
call fcn.0056bdc9
pop eax
pop ecx
mov ebx, esp
mov edx, edi
mov ecx, ebx
call fcn.004ced63
mov ecx, esi
call fcn.0059c7bc
movsd xmm0, qword [ebx + 0x10]
movsd qword [esi + 0x10], xmm0
movsd xmm0, qword [ebx]
movsd xmm1, qword [ebx + 8]
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
mov eax, dword [0xa70a24]
test eax, eax
je 0x59c694
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0xa4]
xor ebx, ebx
lea ecx, [edx + 0x128]
lea eax, [edx + 0x170]
add esi, 8
mov dword [esp + 0x24], ecx
mov ecx, dword [edx + 0x144]
add edx, 0xb8
mov dword [esp + 0x20], eax
mov dword [esp + 0x74], esi
mov dword [esp + 0x48], edx
cmp ebx, ecx
jae 0x59c134
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 0x148]
mov edx, dword [eax + 0x150]
push ebx
call fcn.004cecbe
pop ecx
mov ecx, eax
call fcn.004d9f23
mov esi, dword [esp + 0x24]
mov ecx, dword [edx]
mov eax, dword [eax]
mov dword [esp + 0x90], esi
lea esi, [esp + 0x90]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], eax
mov ecx, esi
call fcn.004c92a1
mov edi, dword [eax + 0x18]
mov ecx, esi
call fcn.004c9289
cmp byte [eax + 0x20], 6
mov dword [esp + 0x4c], ebx
jb 0x59bfd7
lea esi, [eax + 0x20]
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], eax
mov dword [esp + 0x78], esi
mov eax, dword [0xa70a24]
test eax, eax
je 0x59c04c
lea ebx, [esp + 0x30]
mov ecx, ebx
push 0xb
pop edx
push 0x26
push str.stream_closed_because_of_a_broken_pipesend_close:_unexpected_state
call fcn.0056bdc9
pop eax
pop ecx
mov ecx, esp
mov edx, ebx
call fcn.004ced63
mov ecx, esi
call fcn.004c911c
movsd xmm0, qword [esp + 0x10]
mov edi, dword [esp + 0x70]
mov eax, dword [esp + 0x6c]
movsd qword [esi + 0x10], xmm0
movsd xmm0, qword [esp]
movsd xmm1, qword [esp + 8]
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
lea esi, [esp + 0x90]
xor ebx, ebx
cmp edi, 0x3b9aca00
mov ecx, eax
mov edi, eax
setne bl
call fcn.004cc1d7
mov ecx, edi
call fcn.004d97f5
mov ecx, dword [esp + 0x48]
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x74]
push edi
push esi
call fcn.0059c7c6
pop eax
pop ecx
mov eax, dword [esp + 0x98]
movsd xmm0, qword [esp + 0x90]
mov ecx, edi
mov edx, esp
mov dword [esp + 8], eax
movsd qword [esp], xmm0
push ebx
call fcn.004c9830
pop eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x4c]
mov eax, dword [eax + 0x144]
cmp eax, ecx
sbb ebx, 0xffffffff
cmp eax, ecx
sbb ecx, 0
jmp 0x59befd
mov ecx, 0xa6fa1c
call fcn.0040e00b
test al, al
je 0x59bf82
mov ecx, dword [0xa6fa1c]
movzx edx, al
call fcn.00605cf4
test al, al
je 0x59bf82
mov ecx, dword [0xa6fa1c]
mov edx, dword [ecx + 0x20]
lea edi, [ecx + 0x1c]
test edx, edx
je 0x59c0a0
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 0x59c0a2
xor eax, eax
mov ebx, esp
mov dword [esp], eax
lea ecx, [esp + 0x30]
mov edx, ebx
push 0x9c5d28
call fcn.0057917a
pop eax
lea eax, [esp + 0x78]
lea ecx, [esp + 0x84]
mov dword [esp], str.recv_eof__state8_
lea edx, [esp + 0xa8]
mov dword [esp + 0x84], eax
xor eax, eax
mov dword [esp + 0x88], 0x4ca030
inc eax
mov dword [esp + 4], eax
and dword [esp + 0x10], 0
mov dword [esp + 8], ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0xc], eax
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x50]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], 0x9ba4f0
mov dword [esp + 0xa8], ecx
mov ecx, dword [0xa6fa1c]
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], edi
call fcn.00606f01
jmp 0x59bf82
mov eax, dword [esp + 0x1c]
lea ebx, [esp + 0x90]
lea esi, [eax + 0x30]
lea ecx, [esp + 0x84]
mov edx, esi
push dword [esp + 0x24]
call fcn.004da623
pop eax
cmp dword [esp + 0x84], 0
je 0x59c2ba
mov eax, dword [esp + 0x8c]
movsd xmm0, qword [esp + 0x84]
mov ecx, ebx
mov dword [esp + 0x98], eax
movsd qword [esp + 0x90], xmm0
call fcn.004c92a1
mov edi, dword [eax + 0x18]
mov eax, dword [0xa70a24]
test eax, eax
je 0x59c1cc
mov ecx, dword [esp + 0x98]
movsd xmm0, qword [esp + 0x90]
xor eax, eax
cmp edi, 0x3b9aca00
mov edx, esp
setne al
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x20]
movsd qword [esp], xmm0
push eax
call fcn.004c9830
pop eax
jmp 0x59c142
mov ecx, 0xa6f968
call fcn.0040e00b
test al, al
je 0x59c196
mov ecx, dword [0xa6f968]
movzx edx, al
call fcn.00605cf4
test al, al
je 0x59c196
mov ecx, dword [0xa6f968]
mov edx, dword [ecx + 0x20]
lea eax, [ecx + 0x1c]
mov dword [esp + 0x2c], eax
test edx, edx
je 0x59c21c
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 0x59c21e
xor eax, eax
mov dword [esp], eax
lea ecx, [esp + 0x30]
mov edx, esp
push 0x9c593c
call fcn.0057917a
pop eax
lea ebx, [esp + 0x90]
mov ecx, ebx
call fcn.004c92a1
add eax, 0xcc
lea ecx, [esp + 0x78]
mov dword [esp], str.clear_stream_window_update_queue__stream
lea edx, [esp + 0xa8]
mov dword [esp + 0x78], eax
xor eax, eax
mov dword [esp + 0x7c], fcn.004c880e
inc eax
mov dword [esp + 4], eax
and dword [esp + 0x10], 0
mov dword [esp + 8], ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0xc], eax
mov dword [esp + 0x50], ecx
mov ecx, esp
mov dword [esp + 0x54], ecx
lea ecx, [esp + 0x50]
mov dword [esp + 0x58], 0x9ba4f0
mov dword [esp + 0xa8], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], ecx
mov ecx, dword [0xa6f968]
call fcn.00606f01
jmp 0x59c196
mov eax, dword [esp + 0x1c]
lea ebx, [esp + 0x30]
mov edi, esp
lea esi, [eax + 0x58]
mov ecx, ebx
mov edx, esi
push dword [esp + 0x24]
call fcn.004caa1f
pop eax
cmp dword [esp + 0x30], 0
je 0x59c2ff
mov eax, dword [esp + 0x38]
movsd xmm0, qword [esp + 0x30]
mov ecx, dword [esp + 0x20]
mov edx, edi
mov dword [esp + 8], eax
movsd qword [esp], xmm0
push 1
call fcn.004c9830
pop eax
jmp 0x59c2c7
cmp byte [ebp + 8], 0
je 0x59c348
mov eax, dword [esp + 0x1c]
lea ebx, [esp + 0x30]
lea esi, [eax + 0x44]
mov ecx, ebx
mov edx, esi
push dword [esp + 0x24]
call fcn.004c9774
pop eax
cmp dword [esp + 0x30], 0
je 0x59c348
mov eax, dword [esp + 0x38]
movsd xmm0, qword [esp + 0x30]
mov ecx, dword [esp + 0x20]
mov edx, esp
mov dword [esp + 8], eax
movsd qword [esp], xmm0
push 0
call fcn.004c9830
pop eax
jmp 0x59c310
mov eax, dword [0xa70a24]
test eax, eax
je 0x59c6ec
and dword [esp + 0x54], 0
and dword [esp + 0x50], 0
and dword [esp + 0x60], 0
mov eax, dword [esp + 0x1c]
lea ebx, [eax + 0xd4]
lea ecx, [eax + 0xc0]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0xbc], ebx
lea ecx, [esp + 0xc8]
mov edx, ebx
push dword [esp + 0x24]
call fcn.004d7c75
pop eax
cmp dword [esp + 0xc8], 0
je 0x59c57e
mov eax, dword [esp + 0xd0]
movsd xmm0, qword [esp + 0xc8]
lea ecx, [esp + 0x78]
mov esi, edi
mov dword [esp + 0x80], eax
movsd qword [esp + 0x78], xmm0
call fcn.004c92a1
mov edi, dword [eax + 0x18]
mov eax, dword [0xa70a24]
test eax, eax
je 0x59c409
mov ecx, dword [esp + 0x80]
movsd xmm0, qword [esp + 0x78]
xor eax, eax
cmp edi, 0x3b9aca00
mov edi, esi
mov edx, esi
setne al
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x20]
movsd qword [esp], xmm0
push eax
call fcn.004c9830
pop eax
jmp 0x59c37f
mov ecx, 0xa6f7b8
call fcn.0040e00b
test al, al
je 0x59c3d4
mov ecx, dword [0xa6f7b8]
movzx edx, al
call fcn.00605cf4
test al, al
je 0x59c3d4
mov ecx, dword [0xa6f7b8]
mov eax, dword [ecx + 0x1c]
mov ebx, dword [ecx + 0x20]
mov edx, dword [ecx + 0x28]
mov dword [esp + 0x4c], eax
mov eax, dword [ecx + 0x24]
test ebx, ebx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], eax
je 0x59c469
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
and dword [esp + 0x10], 0
xor eax, eax
inc eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x4c]
jmp 0x59c473
mov dword [esp + 0x48], 0
xor eax, eax
add ecx, 0x1c
mov dword [esp], eax
mov edx, esi
mov dword [esp + 0x74], ecx
lea ecx, [esp + 0x90]
push 0x9c4c94
call fcn.0057917a
pop eax
mov ecx, dword [esp + 0x48]
mov dword [esp], str.clear_pending_capacity
mov dword [esp + 4], 1
and dword [esp + 0x10], 0
mov dword [esp + 8], str.dest_is_out_of_bounds
and dword [esp + 0xc], 0
mov eax, 0
cmp ecx, ebx
jae 0x59c4db
mov eax, dword [esp + 0x70]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x40], ecx
lea ebx, [esp + 0x30]
mov dword [esp + 0x30], eax
lea ecx, [esp + 0xa8]
mov edx, ebx
push 0x9c4c94
call fcn.0057917a
pop eax
lea ecx, [esp + 0x78]
call fcn.004c92a1
lea ecx, [esp + 0x90]
mov edx, esp
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], 2
add eax, 0xcc
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0xa8]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], 0x9ba4f0
lea edx, [esp + 0xc4]
mov dword [esp + 0xc4], eax
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x40], edx
lea edx, [esp + 0x84]
mov dword [esp + 0x44], 0x9c4c34
mov dword [esp + 0x8c], ecx
mov ecx, dword [0xa6f7b8]
call fcn.00606f01
mov ebx, dword [esp + 0xbc]
jmp 0x59c3d4
lea esi, [esp + 0x50]
mov ecx, esi
call fcn.0058bfa1
mov ecx, esi
call fcn.004cb2d7
lea esi, [esp + 0x30]
mov edi, esp
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x50]
push dword [esp + 0x24]
call fcn.004da573
pop eax
cmp dword [esp + 0x50], 0
je 0x59c5f8
mov eax, dword [esp + 0x58]
movsd xmm0, qword [esp + 0x50]
mov ecx, esi
mov dword [esp + 0x38], eax
movsd qword [esp + 0x30], xmm0
call fcn.004c92a1
xor ebx, ebx
cmp dword [eax + 0x18], 0x3b9aca00
mov eax, dword [esp + 0x58]
movsd xmm0, qword [esp + 0x50]
mov ecx, dword [esp + 0x20]
mov edx, edi
setne bl
mov dword [esp + 8], eax
movsd qword [esp], xmm0
push ebx
call fcn.004c9830
pop eax
jmp 0x59c596
mov eax, dword [esp + 0x1c]
mov edi, esp
lea esi, [eax + 0xe8]
lea ecx, [esp + 0x50]
mov edx, esi
push dword [esp + 0x24]
call fcn.004d7d25
pop eax
cmp dword [esp + 0x50], 0
je 0x59c666
mov eax, dword [esp + 0x58]
movsd xmm0, qword [esp + 0x50]
lea ecx, [esp + 0x30]
mov dword [esp + 0x38], eax
movsd qword [esp + 0x30], xmm0
call fcn.004c92a1
xor ebx, ebx
cmp dword [eax + 0x18], 0x3b9aca00
mov eax, dword [esp + 0x58]
movsd xmm0, qword [esp + 0x50]
mov ecx, dword [esp + 0x20]
mov edx, edi
setne bl
mov dword [esp + 8], eax
movsd qword [esp], xmm0
push ebx
call fcn.004c9830
pop eax
jmp 0x59c604
movzx edx, byte [esp + 0x2a]
mov ecx, dword [esp + 0xa4]
call fcn.00608264
movzx edx, byte [esp + 0x2b]
mov ecx, dword [esp + 0x1c]
call fcn.00608264
mov eax, dword [esp + 0xc0]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0xa70270
call fcn.0040e00b
test al, al
je 0x59bec5
mov ecx, dword [0xa70270]
movzx edx, al
call fcn.00605cf4
test al, al
je 0x59bec5
mov ecx, dword [0xa70270]
mov edx, dword [ecx + 0x20]
lea ebx, [ecx + 0x1c]
test edx, edx
je 0x59c759
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 0x59c75b
mov ecx, 0xa6f7ac
call fcn.0040e00b
test al, al
je 0x59c355
mov ecx, dword [0xa6f7ac]
movzx edx, al
call fcn.00605cf4
test al, al
je 0x59c355
mov edx, dword [0xa6f7ac]
mov dword [esp], str.dest_is_out_of_bounds
and dword [esp + 4], 0
lea esi, [esp + 0x50]
mov ecx, esi
lea eax, [edx + 0x1c]
mov dword [esp + 8], eax
push edi
call fcn.00605c1b
pop eax
mov eax, dword [esi]
or eax, dword [esi + 4]
je 0x59c364
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
push esi
call fcn.00606ebe
pop eax
jmp 0x59c364
xor eax, eax
mov esi, esp
lea edi, [esp + 0x30]
mov dword [esi], eax
mov ecx, edi
mov edx, esi
push 0xa00170
call fcn.0057917a
pop eax
xor eax, eax
lea ecx, [esp + 0x50]
lea edx, [esp + 0xa8]
mov dword [esi], str.Streams::recv_eof
inc eax
mov dword [ecx], edi
mov dword [ecx + 4], esi
mov dword [edx], ecx
mov dword [ecx + 8], 0x9fd8ec
mov ecx, dword [0xa70270]
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 0x59bec5