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

Disassembly:
sub esp, 0x6c
mov eax, dword [0x592830]
xor eax, esp
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x70]
push ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x78]
push ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x80]
push esi
push edi
mov esi, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x8c]
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
test esi, esi
je 0x50f054
cmp dword [esi + 0x1048], 0xc0dedbad
jne 0x50f054
xor ebp, ebp
mov dword [esp + 0x18], 0
cmp dword [esi + 8], ebp
jne 0x50df02
mov eax, dword [esi + 0x24]
cmp eax, 2
jle 0x50df02
cmp eax, 0xe
jl 0x50f013
mov eax, dword [edi + 0x7c]
mov dword [edi + 0x7c], ebp
test eax, eax
je 0x50df6e
mov eax, dword [edi + 0x24]
mov dword [esp + 0x44], eax
test eax, eax
je 0x50df6e
mov edi, dword [eax]
cmp dword [edi + 0x24], 2
je 0x50df3a
mov dword [edi + 0x24], 2
mov edx, dword [0x544c48]
test edx, edx
je 0x50df3a
push edi
call edx
mov eax, dword [esp + 0x48]
add esp, 4
mov ecx, dword [esp + 0x14]
push 0
mov edx, eax
lea ecx, [ecx + 0x24]
call fcn.005211f0
add esp, 4
mov edx, 7
push 0
push 0
mov ecx, edi
call fcn.0050fc50
add esp, 8
or dword [edi + 0xf84], 0x2000
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 8]
test eax, eax
je 0x50e1e6
mov ecx, dword [esi + 0x24]
cmp ecx, 2
jle 0x50df88
cmp ecx, 0xf
jge 0x50df88
mov dword [eax], esi
cmp dword [esi + 8], ebp
je 0x50e1e6
mov ecx, dword [esi + 0x24]
cmp ecx, 2
jl 0x50e1e6
cmp ecx, 0xf
jge 0x50e1e6
xor eax, eax
cmp ecx, 8
setle al
lea edx, [esp + 0x60]
mov ecx, esi
push eax
call fcn.00516750
add esp, 4
test edx, edx
jg 0x50e1e6
jl 0x50dfcf
test eax, eax
jae 0x50e1e6
mov eax, dword [esi + 0x24]
cmp eax, 3
jne 0x50e039
mov eax, dword [esi + 0xb30]
sub esp, 0x10
mov ecx, esp
sub esp, 0x10
mov dword [ecx], eax
mov eax, dword [esi + 0xb34]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0xb38]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0xb3c]
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x3c]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 0xc], ecx
call fcn.0051fa10
push edx
push eax
push str.Resolving_timed_out_after__I64d_milliseconds
push esi
call fcn.0051a7e0
add esp, 0x30
jmp 0x50e18b
cmp eax, 4
jne 0x50e0a0
mov eax, dword [esi + 0xb30]
sub esp, 0x10
mov ecx, esp
sub esp, 0x10
mov dword [ecx], eax
mov eax, dword [esi + 0xb34]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0xb38]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0xb3c]
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x3c]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 0xc], ecx
call fcn.0051fa10
push edx
push eax
push str.Connection_timed_out_after__I64d_milliseconds
push esi
call fcn.0051a7e0
add esp, 0x30
jmp 0x50e18b
mov edx, dword [esi + 0x88]
mov ecx, dword [esi + 0x8c]
mov eax, edx
and eax, ecx
cmp eax, 0xffffffff
mov eax, dword [esi + 0xb30]
je 0x50e125
push ecx
push edx
push dword [esi + 0x9c]
push dword [esi + 0x98]
sub esp, 0x10
mov ecx, esp
sub esp, 0x10
mov dword [ecx], eax
mov eax, dword [esi + 0xb34]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0xb38]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0xb3c]
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x4c]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x58]
mov dword [eax + 0xc], ecx
call fcn.0051fa10
add esp, 0x20
push edx
push eax
push str.Operation_timed_out_after__I64d_milliseconds_with__I64d_out_of__I64d_bytes_received
push esi
call fcn.0051a7e0
add esp, 0x20
jmp 0x50e18b
push dword [esi + 0x9c]
push dword [esi + 0x98]
sub esp, 0x10
mov ecx, esp
sub esp, 0x10
mov dword [ecx], eax
mov eax, dword [esi + 0xb34]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0xb38]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0xb3c]
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x44]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 0xc], ecx
call fcn.0051fa10
add esp, 0x20
push edx
push eax
push str.Operation_timed_out_after__I64d_milliseconds_with__I64d_bytes_received
push esi
call fcn.0051a7e0
add esp, 0x18
cmp dword [esi + 0x24], 8
jle 0x50e1d1
mov edi, dword [esi + 8]
mov ecx, ebp
mov eax, dword [edi + 0x2c8]
mov eax, dword [eax + 0x44]
and eax, 0x200
sete cl
test eax, eax
jne 0x50e1c9
mov edx, dword [edi + 0x2a4]
mov eax, edx
and eax, 1
cmp ecx, eax
je 0x50e1c9
mov eax, edx
xor eax, ecx
and eax, 1
xor eax, edx
mov dword [edi + 0x2a4], eax
mov dword [esp + 0x18], 1
mov ebx, 0x1c
push 1
mov edx, ebx
mov ecx, esi
call fcn.0050f560
jmp 0x50ee95
mov eax, dword [esi + 0x24]
cmp eax, 0x10
ja case.default.0x50e1f2
jmp dword [eax*4 + 0x50f06c]
mov ecx, esi
call fcn.005238b0
mov ebx, eax
test ebx, ebx
jne case.0x50e1f2.1
cmp dword [esi + 0x24], 2
je 0x50e226
mov dword [esi + 0x24], 2
mov eax, dword [0x544c48]
test eax, eax
je 0x50e226
push esi
call eax
add esp, 4
mov edx, 1
mov ecx, esi
call fcn.005249e0
or ebp, 0xffffffff
jmp case.0x50e1f2.1
mov edx, 2
mov ecx, esi
call fcn.005249e0
mov eax, dword [esi + 0x638]
test eax, eax
je 0x50e262
cdq
push edx
push eax
mov edx, 9
mov ecx, esi
call fcn.0050fc50
add esp, 8
mov eax, dword [esi + 0x63c]
test eax, eax
je 0x50e27e
cdq
push edx
push eax
mov edx, 2
mov ecx, esi
call fcn.0050fc50
add esp, 8
lea eax, [esp + 0x30]
push eax
lea edx, [esp + 0x60]
mov ecx, esi
call fcn.005148b0
mov ebx, eax
add esp, 4
cmp ebx, 0x59
jne 0x50e2bf
cmp dword [esi + 0x24], 1
je 0x50e2a5
mov dword [esi + 0x24], 1
mov edx, dword [edi + 0x28]
lea eax, [esi + 0xc]
push eax
push esi
lea ecx, [edi + 0x24]
call fcn.005210e0
add esp, 8
xor ebx, ebx
jmp case.0x50e1f2.1
test dword [esi + 0xf84], 0x2000
je 0x50e2e1
push str.Transfer_was_pending__now_try_another_n
push esi
call fcn.0051a600
mov ecx, dword [esi + 0x78]
add esp, 8
call fcn.0050cf90
test ebx, ebx
jne case.0x50e1f2.1
cmp dword [esp + 0x5c], ebp
je 0x50e309
cmp dword [esi + 0x24], 3
mov edi, dword [esp + 0x14]
je 0x50ee9c
mov dword [esi + 0x24], 3
jmp 0x50ee9c
or ebp, 0xffffffff
cmp dword [esp + 0x30], 0
je 0x50e32e
cmp dword [esi + 0x24], 8
je case.0x50e1f2.1
mov dword [esi + 0x24], 8
mov eax, dword [0x544c60]
jmp 0x50ee8e
mov ecx, dword [esi + 8]
call fcn.0051f8b0
mov edi, dword [esp + 0x14]
test eax, eax
jne 0x50e53a
cmp dword [esi + 0x24], 4
je 0x50ee9c
mov dword [esi + 0x24], 4
jmp 0x50ee9c
mov edi, dword [esi + 8]
mov eax, dword [edi + 0x2a4]
test al, 0x20
je 0x50e36d
mov eax, dword [edi + 0xe4]
jmp 0x50e37f
test al, 4
je 0x50e379
mov eax, dword [edi + 0xb4]
jmp 0x50e37f
mov eax, dword [edi + 0x9c]
push dword [edi + 0xfc]
mov edx, eax
mov ecx, edi
mov dword [esp + 0x38], eax
call fcn.005207d0
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
je 0x50e3c0
push dword [esp + 0x34]
or dword [edi + 0x348], 1
push 0x568d60
push esi
mov dword [edi + 0x33c], eax
xor ebx, ebx
call fcn.0051a600
add esp, 0xc
jmp 0x50e3e3
mov ecx, dword [esi + 8]
lea edx, [esp + 0x24]
mov eax, dword [ecx]
test dword [eax + 0xa84], 0x40000
je 0x50e3dc
call fcn.00536240
jmp 0x50e3e1
call fcn.00516f90
mov ebx, eax
mov edi, dword [esp + 0x14]
mov edx, esi
mov ecx, edi
call fcn.0050da90
cmp dword [esp + 0x24], ebp
je 0x50e40b
mov ecx, dword [esi + 8]
lea edx, [esp + 0x30]
call fcn.005206e0
mov ebx, eax
test ebx, ebx
je 0x50e420
mov dword [esi + 8], ebp
test ebx, ebx
je 0x50ee9c
mov dword [esp + 0x18], 1
jmp 0x50ee9c
or ebp, 0xffffffff
cmp dword [esp + 0x30], 0
je 0x50e453
cmp dword [esi + 0x24], 8
je 0x50ee9c
mov dword [esi + 0x24], 8
mov eax, dword [0x544c60]
test eax, eax
je 0x50ee9c
push esi
call eax
add esp, 4
jmp 0x50ee9c
mov ecx, dword [esi + 8]
call fcn.0051f8b0
test eax, eax
je 0x50e342
jmp 0x50e53a
lea eax, [esp + 0x30]
push eax
push dword [esi + 8]
call fcn.00529450
mov ecx, dword [esi + 8]
add esp, 8
test dword [ecx + 0x2a4], 0x100000
mov ebx, eax
je 0x50e4b6
xor ebx, ebx
push ebx
xor edx, edx
mov ecx, esi
or ebp, 0xffffffff
call fcn.0050f560
add esp, 4
cmp dword [esi + 0x24], 2
je case.0x50e1f2.1
mov dword [esi + 0x24], 2
mov eax, dword [0x544c48]
jmp 0x50ee8e
test ebx, ebx
jne 0x50e588
cmp dword [ecx + 0xf0], 2
jne 0x50e4d3
cmp dword [ecx + 0x294], ebp
je case.0x50e1f2.1
call fcn.0051f890
test eax, eax
je case.0x50e1f2.1
mov edi, dword [esp + 0x14]
or ebp, 0xffffffff
cmp dword [esi + 0x24], 6
je 0x50ee9c
mov dword [esi + 0x24], 6
jmp 0x50ee9c
mov ecx, dword [esi + 8]
lea eax, [esp + 0x54]
push eax
call fcn.005168c0
add esp, 4
mov ebx, eax
cmp dword [esp + 0x54], ebp
je 0x50e572
test ebx, ebx
jne 0x50e57a
mov ecx, dword [esi + 8]
cmp dword [ecx + 0xf0], 2
jne 0x50e52d
cmp dword [ecx + 0x294], ebp
je 0x50e536
call fcn.0051f8b0
test eax, eax
je 0x50e550
mov edi, dword [esp + 0x14]
cmp dword [esi + 0x24], 5
je 0x50ee9c
mov dword [esi + 0x24], 5
jmp 0x50ee9c
mov edx, dword [ecx + 0x2a4]
and edx, 0x4000
or ebp, 0xffffffff
neg edx
sbb edx, edx
add edx, 6
mov ecx, esi
call fcn.0050fae0
jmp case.0x50e1f2.1
test ebx, ebx
je case.0x50e1f2.1
push 1
mov edx, ebx
mov ecx, esi
call fcn.0050f560
add esp, 4
mov dword [esp + 0x18], 1
jmp case.0x50e1f2.1
mov ecx, dword [esi + 8]
lea edx, [esp + 0x30]
call fcn.00514bb0
mov ebx, eax
test ebx, ebx
jne 0x50e57a
cmp dword [esp + 0x30], ebp
jne 0x50e614
cmp dword [esi + 0x24], 7
mov edi, dword [esp + 0x14]
je 0x50ee9c
mov dword [esi + 0x24], 7
jmp 0x50ee9c
mov ecx, dword [esi + 8]
xor ebx, ebx
test ecx, ecx
je 0x50e5fb
mov eax, dword [ecx + 0x2c8]
cmp dword [eax + 0x18], ebx
je 0x50e5fb
mov dword [esp + 0x30], ebx
mov eax, dword [ecx + 0x2c8]
lea edx, [esp + 0x30]
mov eax, dword [eax + 0x18]
push edx
push ecx
call eax
mov ebx, eax
mov eax, dword [esp + 0x38]
add esp, 8
jmp 0x50e604
mov eax, 1
mov dword [esp + 0x30], eax
test ebx, ebx
jne 0x50e57a
test eax, eax
je case.0x50e1f2.1
cmp dword [esi + 0x24], 8
je 0x50e630
mov dword [esi + 0x24], 8
mov eax, dword [0x544c60]
test eax, eax
je 0x50e630
push esi
call eax
add esp, 4
or ebp, 0xffffffff
jmp case.0x50e1f2.1
test byte [esi + 0xa84], 1
je 0x50e66e
mov ecx, dword [esi + 8]
mov eax, dword [ecx + 0x2a4]
test al, 1
je 0x50e657
and eax, 0xfffffffe
mov dword [ecx + 0x2a4], eax
cmp dword [esi + 0x24], 0xe
je 0x50e664
mov dword [esi + 0x24], 0xe
xor ebx, ebx
or ebp, 0xffffffff
jmp case.0x50e1f2.1
lea edx, [esp + 0x3c]
mov ecx, esi
call fcn.0050f0f0
mov ebx, eax
test ebx, ebx
jne 0x50e6d1
cmp dword [esp + 0x3c], ebp
jne 0x50e699
cmp dword [esi + 0x24], 9
je 0x50e692
mov dword [esi + 0x24], 9
xor ebp, ebp
jmp case.0x50e1f2.1
mov eax, dword [esi + 8]
test dword [eax + 0x2a4], 0x800
je 0x50e6bc
cmp dword [esi + 0x24], 0xa
je 0x50e6b5
mov dword [esi + 0x24], 0xa
xor ebp, ebp
jmp case.0x50e1f2.1
cmp dword [esi + 0x24], 0xb
je 0x50e6c9
mov dword [esi + 0x24], 0xb
or ebp, 0xffffffff
jmp case.0x50e1f2.1
cmp ebx, 0x37
jne 0x50e787
mov ecx, dword [esi + 8]
test byte [ecx + 0x2a4], 2
je 0x50e787
lea edx, [esp + 0x38]
mov dword [esp + 0x38], ebp
call fcn.00523750
test eax, eax
je 0x50e705
mov ebx, eax
mov dword [esp + 0x18], 1
push 0
mov edx, ebx
mov ecx, esi
call fcn.0050f560
mov edi, dword [esp + 0x3c]
add esp, 4
test edi, edi
je 0x50e773
test eax, eax
je 0x50e732
cmp eax, 0x37
je 0x50e732
push edi
mov ebx, eax
call dword [0x593c28]
jmp 0x50ee95
push 2
mov edx, edi
mov ecx, esi
call fcn.00523020
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x50e77b
cmp dword [esi + 0x24], 2
je 0x50e762
mov dword [esi + 0x24], 2
mov eax, dword [0x544c48]
test eax, eax
je 0x50e762
push esi
call eax
add esp, 4
push edi
or ebp, 0xffffffff
xor ebx, ebx
call dword [0x593c28]
jmp 0x50ee95
mov dword [esp + 0x18], 1
push edi
call dword [0x593c28]
jmp 0x50ee95
cmp dword [esi + 8], ebp
je 0x50e588
push 0
jmp 0x50e57c
mov ecx, dword [esi + 8]
xor ebx, ebx
test ecx, ecx
je 0x50e7cb
mov eax, dword [ecx + 0x2c8]
cmp dword [eax + 0x1c], ebx
je 0x50e7cb
mov dword [esp + 0x3c], ebx
mov eax, dword [ecx + 0x2c8]
lea edx, [esp + 0x3c]
mov eax, dword [eax + 0x1c]
push edx
push ecx
call eax
mov ebx, eax
mov eax, dword [esp + 0x44]
add esp, 8
jmp 0x50e7d4
mov eax, 1
mov dword [esp + 0x3c], eax
test ebx, ebx
jne 0x50e790
test eax, eax
je case.0x50e1f2.1
mov eax, dword [esi + 8]
mov ecx, esi
mov edx, dword [eax + 0x2a4]
shr edx, 0xb
not edx
and edx, 1
or edx, 0xa
call fcn.0050fae0
or ebp, 0xffffffff
jmp case.0x50e1f2.1
mov ecx, dword [esi + 8]
lea edx, [esp + 0x58]
call fcn.0050f0b0
mov ebx, eax
test ebx, ebx
jne 0x50e790
mov eax, dword [esp + 0x58]
test eax, eax
je 0x50e692
xor edx, edx
cmp eax, 1
sete dl
mov ecx, esi
lea edx, [edx*2 + 9]
call fcn.0050fae0
or ebp, 0xffffffff
jmp case.0x50e1f2.1
mov eax, dword [esi + 8]
test dword [eax + 0x2a4], 0x800000
je 0x50e859
mov ecx, edi
call fcn.0050cf90
mov eax, dword [esi + 8]
cmp dword [eax + 0x2ec], 0xffffffff
jne 0x50e883
cmp dword [eax + 0x2f0], 0xffffffff
jne 0x50e883
cmp dword [esi + 0x24], 0xe
je 0x50e890
mov dword [esi + 0x24], 0xe
or ebp, 0xffffffff
jmp case.0x50e1f2.1
cmp dword [esi + 0x24], 0xc
je 0x50e890
mov dword [esi + 0x24], 0xc
or ebp, 0xffffffff
jmp case.0x50e1f2.1
mov ecx, dword [esi + 8]
call fcn.00524d80
test eax, eax
je 0x50e8ae
mov ebx, 0x2a
jmp case.0x50e1f2.1
mov ecx, dword [esp + 0x1c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 0xc], ecx
mov ecx, esi
call fcn.0052aaf0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne case.0x50e1f2.1
mov edx, dword [esi + 0x668]
xor edi, edi
mov dword [esp + 0x24], edi
cmp dword [esi + 0x66c], edi
jl 0x50e975
jg 0x50e900
test edx, edx
je 0x50e975
mov ecx, dword [esp + 0x1c]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
mov dword [eax], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 0xc], ecx
mov eax, dword [esi + 0xb60]
mov ecx, esp
push dword [esi + 0x66c]
mov dword [ecx], eax
mov eax, dword [esi + 0xb64]
push edx
push dword [esi + 0xb74]
mov dword [ecx + 4], eax
push dword [esi + 0xb70]
mov eax, dword [esi + 0xb68]
push dword [esi + 0xac4]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0xb6c]
push dword [esi + 0xac0]
mov dword [ecx + 0xc], eax
call fcn.005248e0
add esp, 0x38
mov edi, eax
mov dword [esp + 0x24], edx
xor eax, eax
xor edx, edx
cmp dword [esi + 0x674], eax
jl 0x50ea03
jg 0x50e98f
cmp dword [esi + 0x670], eax
jbe 0x50ea03
mov ecx, dword [esp + 0x1c]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
mov dword [eax], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 0xc], ecx
mov eax, dword [esi + 0xb78]
mov ecx, esp
push dword [esi + 0x674]
mov dword [ecx], eax
push dword [esi + 0x670]
mov eax, dword [esi + 0xb7c]
push dword [esi + 0xb8c]
mov dword [ecx + 4], eax
push dword [esi + 0xb88]
mov eax, dword [esi + 0xb80]
push dword [esi + 0xabc]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0xb84]
push dword [esi + 0xab8]
mov dword [ecx + 0xc], eax
call fcn.005248e0
add esp, 0x38
mov ecx, edi
or ecx, dword [esp + 0x24]
jne 0x50ea4d
mov ecx, eax
or ecx, edx
jne 0x50ea4d
cmp dword [esi + 0x24], 0xc
je 0x50ea1e
mov dword [esi + 0x24], 0xc
mov ecx, dword [esp + 0x1c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 0xc], ecx
mov ecx, esi
call fcn.00524c20
add esp, 0x10
jmp case.0x50e1f2.1
mov ecx, dword [esp + 0x24]
cmp ecx, edx
jl 0x50ea71
jg 0x50ea5b
cmp edi, eax
jb 0x50ea71
push ecx
push edi
mov edx, 0xa
mov ecx, esi
call fcn.0050fc50
add esp, 8
jmp case.0x50e1f2.1
push edx
push eax
mov edx, 0xa
mov ecx, esi
call fcn.0050fc50
add esp, 8
jmp case.0x50e1f2.1
mov edx, dword [esi + 0x668]
xor edi, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x48], edi
cmp dword [esi + 0x66c], edi
jl 0x50eb2c
jg 0x50eab5
test edx, edx
je 0x50eb2c
mov ecx, dword [esp + 0x1c]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
mov dword [eax], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 0xc], ecx
mov eax, dword [esi + 0xb60]
mov ecx, esp
push dword [esi + 0x66c]
mov dword [ecx], eax
mov eax, dword [esi + 0xb64]
push edx
push dword [esi + 0xb74]
mov dword [ecx + 4], eax
push dword [esi + 0xb70]
mov eax, dword [esi + 0xb68]
push dword [esi + 0xac4]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0xb6c]
push dword [esi + 0xac0]
mov dword [ecx + 0xc], eax
call fcn.005248e0
add esp, 0x38
mov dword [esp + 0x34], eax
mov dword [esp + 0x48], edx
xor eax, eax
xor edx, edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x44], edx
cmp dword [esi + 0x674], eax
jl 0x50ebce
jg 0x50eb52
cmp dword [esi + 0x670], eax
jbe 0x50ebce
mov ecx, dword [esp + 0x1c]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
mov dword [eax], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 0xc], ecx
mov eax, dword [esi + 0xb78]
mov ecx, esp
push dword [esi + 0x674]
mov dword [ecx], eax
push dword [esi + 0x670]
mov eax, dword [esi + 0xb7c]
push dword [esi + 0xb8c]
mov dword [ecx + 4], eax
push dword [esi + 0xb88]
mov eax, dword [esi + 0xb80]
push dword [esi + 0xabc]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0xb84]
push dword [esi + 0xab8]
mov dword [ecx + 0xc], eax
call fcn.005248e0
add esp, 0x38
mov dword [esp + 0x38], eax
mov dword [esp + 0x44], edx
mov ecx, dword [esp + 0x34]
or ecx, dword [esp + 0x48]
jne 0x50edc9
mov ecx, eax
or ecx, edx
jne 0x50edc9
mov ecx, dword [esi + 8]
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x44]
push eax
mov edx, esi
call fcn.00523360
mov ecx, dword [esp + 0x48]
add esp, 8
mov ebx, eax
test ecx, ecx
jne 0x50ec68
cmp ebx, 0x38
je 0x50ec68
cmp ebx, 0x5c
jne 0x50ed38
mov ecx, dword [esi + 8]
mov eax, dword [ecx + 0x2c8]
test byte [eax + 0x44], 2
jne 0x50ec58
cmp ebx, 0x5c
je 0x50ec58
mov eax, dword [eax + 0x44]
and eax, 0x200
mov edx, ebp
sete dl
test eax, eax
jne 0x50ec58
mov edi, dword [ecx + 0x2a4]
mov eax, edi
and eax, 1
cmp edx, eax
je 0x50ec58
mov eax, edi
xor eax, edx
and eax, 1
xor eax, edi
mov dword [ecx + 0x2a4], eax
push 1
mov edx, ebx
mov ecx, esi
call fcn.0050f560
jmp 0x50ee95
mov ecx, dword [esi + 8]
lea edx, [esp + 0x24]
call fcn.00523750
test eax, eax
jne 0x50ec91
mov edi, dword [esp + 0x24]
test edi, edi
setne al
test eax, eax
je 0x50ec9f
xor ebx, ebx
mov dword [esp + 0x40], 1
jmp 0x50ecb3
test ebx, ebx
jne 0x50ec15
mov edi, dword [esp + 0x24]
mov ebx, eax
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x40]
test ebx, ebx
jne 0x50ec15
test ecx, ecx
je 0x50edb3
cmp dword [esi + 0x140], ebp
jne 0x50ed41
test eax, eax
jne 0x50ed62
cmp dword [esi + 0x13c], ebp
je 0x50ed23
push edi
call dword [0x593c28]
mov edi, dword [esi + 0x13c]
add esp, 4
mov edx, edi
push 1
mov ecx, esi
mov dword [esi + 0x13c], ebp
call fcn.00523020
add esp, 4
mov ebx, eax
push edi
call dword [0x593c28]
add esp, 4
test ebx, ebx
je 0x50ed23
push 1
mov edx, ebx
mov ecx, esi
mov dword [esp + 0x1c], 1
call fcn.0050f560
mov ebx, eax
add esp, 4
test ebx, ebx
jne case.0x50e1f2.1
cmp dword [esi + 0x24], 0xe
je 0x50ed30
mov dword [esi + 0x24], 0xe
or ebp, 0xffffffff
jmp case.0x50e1f2.1
mov eax, dword [esp + 0x50]
jmp 0x50eca3
test eax, eax
jne 0x50ed62
push edi
call dword [0x593c28]
mov edi, dword [esi + 0x140]
add esp, 4
mov dword [esi + 0x140], ebp
mov ebx, 3
jmp 0x50ed67
mov ebx, 2
push 0
xor edx, edx
mov ecx, esi
call fcn.0050f560
add esp, 4
mov edx, edi
push ebx
mov ecx, esi
call fcn.00523020
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x50eda7
cmp dword [esi + 0x24], 2
je 0x50eda4
mov dword [esi + 0x24], 2
mov eax, dword [0x544c48]
test eax, eax
je 0x50eda4
push esi
call eax
add esp, 4
or ebp, 0xffffffff
push edi
call dword [0x593c28]
jmp 0x50ee95
mov edi, dword [esp + 0x14]
cmp dword [esp + 0x4c], ebp
je 0x50ee9c
or ebp, 0xffffffff
jmp 0x50ee9c
mov ecx, dword [esp + 0x1c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 0xc], ecx
mov ecx, esi
call fcn.00524c20
add esp, 0x10
cmp dword [esi + 0x24], 0xd
je 0x50ee00
mov dword [esi + 0x24], 0xd
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
cmp edx, ecx
jl 0x50ee2e
jg 0x50ee18
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x34], eax
jb 0x50ee32
push edx
push dword [esp + 0x38]
mov edx, 0xa
mov ecx, esi
call fcn.0050fc50
add esp, 8
jmp case.0x50e1f2.1
mov eax, dword [esp + 0x38]
push ecx
jmp 0x50ea72
mov eax, dword [esi + 8]
or ebp, 0xffffffff
test eax, eax
je 0x50ee76
test dword [eax + 0x2a4], 0x800000
je 0x50ee55
mov ecx, edi
call fcn.0050cf90
push 0
mov edx, ebx
mov ecx, esi
call fcn.0050f560
add esp, 4
test ebx, ebx
jne 0x50ee69
mov ebx, eax
cmp dword [esi + 8], 0
je 0x50ee76
mov ecx, esi
call fcn.0050f510
cmp dword [esi + 0x24], 0xf
je case.0x50e1f2.1
mov eax, dword [esi + 0x78]
mov dword [esi + 0x24], 0xf
dec dword [eax + 0x10]
mov eax, dword [0x544c7c]
test eax, eax
je case.0x50e1f2.1
push esi
call eax
add esp, 4
mov edi, dword [esp + 0x14]
cmp dword [esi + 0x24], 0xf
jge 0x50ef9c
test ebx, ebx
je 0x50ef11
mov ecx, edi
call fcn.0050cf90
mov edx, dword [esi + 8]
test edx, edx
je 0x50eef3
cmp dword [esp + 0x18], 0
je 0x50eef3
xor eax, eax
cmp ebx, 0x1c
sete al
mov ecx, esi
push eax
call fcn.00514c70
mov ecx, dword [esi + 8]
add esp, 4
test ecx, ecx
je 0x50eeec
push 0
lea edx, [esi + 0x18]
add ecx, 0x31c
call fcn.005211f0
add esp, 4
mov dword [esi + 8], 0
cmp dword [esi + 0x24], 0xf
je 0x50ef95
mov eax, dword [esi + 0x78]
mov dword [esi + 0x24], 0xf
dec dword [eax + 0x10]
mov eax, dword [0x544c7c]
jmp 0x50ef8b
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x50ef98
call fcn.00524d80
test eax, eax
je 0x50ef98
mov edi, dword [esi + 8]
mov ecx, 0
mov eax, dword [edi + 0x2c8]
mov ebx, 0x2a
mov eax, dword [eax + 0x44]
and eax, 0x200
sete cl
test eax, eax
jne 0x50ef65
mov edx, dword [edi + 0x2a4]
mov eax, edx
and eax, 1
cmp ecx, eax
je 0x50ef65
mov eax, edx
xor eax, ecx
and eax, 1
xor eax, edx
mov dword [edi + 0x2a4], eax
xor ecx, ecx
cmp dword [esi + 0x24], 0xe
setge cl
add ecx, 0xe
cmp dword [esi + 0x24], ecx
je 0x50ef95
mov dword [esi + 0x24], ecx
cmp ecx, 0xf
jne 0x50ef84
mov eax, dword [esi + 0x78]
dec dword [eax + 0x10]
mov eax, dword [ecx*4 + 0x544c40]
test eax, eax
je 0x50ef95
push esi
call eax
add esp, 4
or ebp, 0xffffffff
cmp dword [esi + 0x24], 0xf
jne 0x50efe4
mov eax, dword [esi + 0xa6c]
test eax, eax
je 0x50efb1
push ebx
push esi
call eax
add esp, 8
jmp 0x50efd7
lea eax, [esi + 0x2c]
push eax
mov dword [eax + 0xc], 1
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], ebx
push eax
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0x18]
lea ecx, [eax + 0x14]
call fcn.005210e0
add esp, 8
xor ebp, ebp
cmp dword [esi + 0x24], 0x10
je 0x50efe4
mov dword [esi + 0x24], 0x10
mov edi, dword [esp + 0x14]
cmp ebp, 0xffffffff
je 0x50dee2
cmp dword [edi + 0x7c], 0
jne 0x50dee2
mov dword [esi + 0x28], ebx
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.004ebb9e
add esp, 0x6c
ret
push dword [esi + 0x24]
push str.In_state__d_with_no_conn__bail_out__n
push esi
call fcn.0051a7e0
add esp, 0xc
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.004ebb9e
add esp, 0x6c
ret
mov dword [esi + 0x28], ebx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.004ebb9e
add esp, 0x6c
ret
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 2
call fcn.004ebb9e
add esp, 0x6c
ret