Function at 0x10031c30
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x24
push ebx
xor ebx, ebx
push ebp
xor ebp, ebp
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 8], ebp
cmp esi, ebx
je 0x10032940
cmp dword [esi + 0x87cc], 0xc0dedbad
jne 0x10032940
push edi
mov dword [esp + 0x10], ebx
cmp dword [esi + 0x86c8], ebx
je 0x10031ca8
mov eax, dword [esi + 0x86d0]
push eax
push esi
push str.Pipe_broke:_handle_0x_p__url___s_n
push esi
call fcn.10032f00
add esp, 0x10
cmp dword [esi + 0xc], 0x10
jge 0x10031c9a
lea eax, [ebx + 2]
mov ecx, esi
call fcn.100308e0
or ebp, 0xffffffff
mov dword [esi + 0x10], ebx
mov dword [esi + 0x86c8], ebx
mov dword [esi + 8], ebx
jmp 0x100328c3
mov eax, dword [esi + 8]
lea edi, [esi + 8]
cmp eax, ebx
jne 0x10031cde
mov ecx, dword [esi + 0xc]
cmp ecx, 2
jle 0x10031cda
cmp ecx, 0xf
jge 0x10031cda
push ecx
push str.In_state__d_with_no_easy_conn__bail_out__n
push esi
call fcn.10032f90
add esp, 0xc
pop edi
pop ebp
mov eax, 4
pop ebx
add esp, 0x24
ret
cmp eax, ebx
je 0x10031ced
mov ecx, dword [esi + 0xc]
cmp ecx, 2
jle 0x10031ced
cmp ecx, 0x10
jge 0x10031ced
mov dword [eax], esi
cmp dword [edi], ebx
je 0x10031e38
mov eax, dword [esi + 0xc]
cmp eax, 2
jl 0x10031e38
cmp eax, 0x10
jge 0x10031e38
xor ecx, ecx
cmp eax, 7
setle cl
lea edx, [esp + 0x38]
push ecx
push edx
push esi
call fcn.10034980
add esp, 0xc
test eax, eax
jge 0x10031e38
mov eax, dword [esi + 0xc]
cmp eax, 3
jne 0x10031d62
mov eax, dword [esi + 0x544]
mov ecx, dword [esi + 0x540]
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x3c]
push ecx
push edx
push eax
call fcn.10032b00
push eax
push str.Resolving_timed_out_after__ld_milliseconds
push esi
call fcn.10032f90
add esp, 0x1c
jmp 0x10031e14
cmp eax, 4
jne 0x10031d95
mov ecx, dword [esi + 0x544]
mov edx, dword [esi + 0x540]
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
push eax
push ecx
call fcn.10032b00
push eax
push str.Connection_timed_out_after__ld_milliseconds
push esi
call fcn.10032f90
add esp, 0x1c
jmp 0x10031e14
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x54]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
mov edx, dword [esi + 0x544]
je 0x10031de3
push ecx
mov ecx, dword [esi + 0x70]
push eax
mov eax, dword [esi + 0x74]
push eax
mov eax, dword [esi + 0x540]
push ecx
mov ecx, dword [esi + 0x94]
push edx
mov edx, dword [esi + 0x90]
push eax
push ecx
push edx
call fcn.10032b00
add esp, 0x10
push eax
push str.Operation_timed_out_after__ld_milliseconds_with__I64d_out_of__I64d_bytes_received
push esi
call fcn.10032f90
add esp, 0x1c
jmp 0x10031e14
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x70]
push eax
mov eax, dword [esi + 0x540]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push eax
push ecx
push edx
call fcn.10032b00
add esp, 0x10
push eax
push str.Operation_timed_out_after__ld_milliseconds_with__I64d_bytes_received
push esi
call fcn.10032f90
add esp, 0x14
mov eax, dword [edi]
mov dword [eax + 0x1ec], 1
mov eax, 0x10
mov ecx, esi
mov dword [esi + 0x10], 0x1c
call fcn.100308e0
jmp 0x100328c3
mov eax, dword [esi + 0xc]
cmp eax, 0x11
ja case.default.0x10031e44
jmp dword [eax*4 + 0x1003294c]
push esi
call fcn.100579c0
add esp, 4
mov dword [esi + 0x10], eax
cmp eax, ebx
jne case.0x10031e44.1
mov eax, 2
mov ecx, esi
call fcn.100308e0
push 1
push esi
call fcn.1003b270
mov dword [esp + 0x14], 0xffffffff
jmp 0x10032836
push 2
push esi
call fcn.1003b270
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x34]
push edx
push edi
push esi
call fcn.10030840
add esp, 0x18
mov dword [esi + 0x10], eax
cmp eax, 0x59
jne 0x10031eb8
mov eax, 1
mov ecx, esi
call fcn.100308e0
mov dword [esi + 0x10], ebx
jmp case.0x10031e44.1
cmp eax, ebx
jne case.0x10031e44.1
mov eax, dword [edi]
push eax
push esi
call fcn.10059140
add esp, 8
mov dword [esi + 0x10], eax
cmp eax, ebx
jne 0x10032127
cmp dword [esp + 0x28], ebx
je 0x10031eee
mov eax, 3
mov ecx, esi
call fcn.100308e0
jmp case.0x10031e44.1
mov dword [esp + 0xc], 0xffffffff
cmp dword [esp + 0x14], ebx
je 0x10031f16
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 0x2c]
neg eax
sbb eax, eax
add eax, 8
mov ecx, esi
call fcn.100308e0
jmp case.0x10031e44.1
mov edx, dword [edi]
cmp dword [edx + 0x50c], 1
mov ecx, esi
jne 0x10031f32
mov eax, 5
call fcn.100308e0
jmp case.0x10031e44.1
mov eax, 4
call fcn.100308e0
jmp case.0x10031e44.1
mov ecx, dword [edi]
lea eax, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x20], ebx
call fcn.10028e70
mov ebp, dword [esp + 0x3c]
push esi
push ebp
mov dword [esi + 0x10], eax
call fcn.10031820
add esp, 0x10
cmp dword [esp + 0x18], ebx
je 0x10031fba
mov eax, dword [edi]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.100360c0
add esp, 8
mov dword [esi + 0x10], eax
cmp eax, ebx
je 0x10031f84
mov dword [edi], ebx
jmp 0x10031fba
mov dword [esp + 0xc], 0xffffffff
cmp dword [esp + 0x14], ebx
je 0x10031f9e
mov eax, dword [ebp + 0x2c]
neg eax
sbb eax, eax
add eax, 8
jmp 0x10031fb3
mov ecx, dword [edi]
cmp dword [ecx + 0x50c], 1
mov eax, 5
je 0x10031fb3
mov eax, 4
mov ecx, esi
call fcn.100308e0
cmp dword [esi + 0x10], ebx
je case.0x10031e44.1
mov dword [esp + 0x10], 1
jmp case.0x10031e44.1
mov eax, dword [edi]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.10051bc0
mov ecx, dword [edi]
add esp, 8
mov dword [esi + 0x10], eax
cmp dword [ecx + 0x244], ebx
je 0x1003201b
mov eax, dword [esi + 0x138]
cmp eax, ebx
je 0x10031ff9
mov byte [eax], bl
mov eax, 2
mov ecx, esi
mov dword [esi + 0x8608], ebx
mov dword [esi + 0x10], ebx
mov dword [esp + 0xc], 0xffffffff
call fcn.100308e0
jmp case.0x10031e44.1
cmp eax, ebx
jne case.0x10031e44.1
cmp dword [ecx + 0x50c], 2
jne case.0x10031e44.1
mov eax, 4
mov ecx, esi
call fcn.100308e0
jmp case.0x10031e44.1
mov edx, dword [edi]
lea ecx, [esp + 0x24]
push ecx
push ebx
push edx
call fcn.10035870
add esp, 0xc
mov dword [esi + 0x10], eax
cmp dword [esp + 0x24], ebx
je 0x10032072
cmp eax, ebx
jne 0x10032072
mov ecx, dword [edi]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.1002ad10
add esp, 8
mov dword [esi + 0x10], eax
cmp dword [esi + 0x10], ebx
je 0x10032084
mov dword [esp + 0x10], 1
jmp case.0x10031e44.1
cmp dword [esp + 0x24], ebx
je case.0x10031e44.1
cmp dword [esp + 0x14], ebx
jne 0x100320f0
mov edx, dword [edi]
cmp dword [edx + 0x50c], 1
mov ecx, esi
jne 0x100320b8
mov eax, 5
call fcn.100308e0
mov dword [esp + 0xc], 0xffffffff
jmp case.0x10031e44.1
mov eax, 6
call fcn.100308e0
mov dword [esp + 0xc], 0xffffffff
jmp case.0x10031e44.1
mov edx, dword [edi]
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.1002ac90
add esp, 8
mov dword [esi + 0x10], eax
cmp eax, ebx
jne 0x10032112
cmp dword [esp + 0x14], ebx
je case.0x10031e44.1
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x2c]
neg eax
sbb eax, eax
add eax, 8
mov ecx, esi
call fcn.100308e0
mov dword [esp + 0xc], 0xffffffff
jmp case.0x10031e44.1
push esi
call sym.EUFyncFtp.dll_libssh2_trace
mov ecx, dword [esi + 0x10]
push 1
push ecx
push edi
call fcn.1002f8e0
add esp, 0x10
mov dword [esp + 0x10], 1
jmp case.0x10031e44.1
mov ebp, dword [edi]
cmp dword [ebp + 0x2a4], ebx
jne case.0x10031e44.1
mov eax, dword [ebp + 0x2a8]
push esi
call fcn.10031190
add esp, 4
test eax, eax
je case.0x10031e44.1
mov eax, 8
mov ecx, esi
mov dword [ebp + 0x2a4], 1
call fcn.100308e0
mov dword [esp + 0xc], 0xffffffff
jmp case.0x10031e44.1
cmp dword [esi + 0x36c], ebx
je 0x100321a8
mov edx, dword [edi]
mov eax, 0xf
mov ecx, esi
mov dword [edx + 0x1ec], ebx
call fcn.100308e0
mov dword [esi + 0x10], ebx
mov dword [esp + 0xc], 0xffffffff
jmp case.0x10031e44.1
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.1002c140
add esp, 8
mov dword [esi + 0x10], eax
cmp eax, ebx
jne 0x1003224e
cmp dword [esp + 0x1c], ebx
jne 0x10032218
cmp dword [esi + 0x458], ebx
je 0x10032203
mov eax, dword [esi + 0x8708]
cmp eax, 6
je 0x100321df
cmp eax, 4
jne 0x10032203
push ebx
push ebx
push edi
call fcn.1002f8e0
add esp, 0xc
mov eax, 0xf
mov ecx, esi
call fcn.100308e0
mov dword [esp + 0xc], 0xffffffff
jmp case.0x10031e44.1
mov eax, 9
mov ecx, esi
call fcn.100308e0
mov dword [esp + 0xc], ebx
jmp case.0x10031e44.1
mov ecx, dword [edi]
cmp dword [ecx + 0x20c], ebx
mov ecx, esi
je 0x10032237
mov eax, 0xa
call fcn.100308e0
mov dword [esp + 0xc], ebx
jmp case.0x10031e44.1
mov eax, 0xb
call fcn.100308e0
mov dword [esp + 0xc], 0xffffffff
jmp case.0x10031e44.1
cmp eax, 0x37
jne 0x10032316
mov eax, dword [edi]
cmp dword [eax + 0x1f0], ebx
je 0x10032316
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x20], ebx
xor ebp, ebp
call fcn.10058060
add esp, 8
cmp eax, ebx
je 0x1003228a
mov dword [esi + 0x10], eax
mov dword [esp + 0x10], 1
jmp 0x10032295
xor eax, eax
cmp dword [esp + 0x18], ebx
setne al
mov ebp, eax
push esi
call sym.EUFyncFtp.dll_libssh2_trace
mov ecx, dword [esi + 0x10]
push ebx
push ecx
push edi
call fcn.1002f8e0
add esp, 0x10
cmp ebp, ebx
je 0x10031fc3
cmp eax, ebx
je 0x100322d0
cmp eax, 0x37
je 0x100322d0
mov edx, dword [esp + 0x18]
push edx
mov dword [esi + 0x10], eax
call dword [0x100b4004]
add esp, 4
jmp case.0x10031e44.1
mov eax, dword [esp + 0x18]
push 2
push eax
push esi
call fcn.10057d70
add esp, 0xc
cmp eax, ebx
jne 0x10032300
mov eax, 2
mov ecx, esi
call fcn.100308e0
mov dword [esp + 0xc], 0xffffffff
mov dword [esi + 0x10], ebx
jmp case.0x10031e44.1
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esi + 0x10], eax
call dword [0x100b4004]
add esp, 4
jmp case.0x10031e44.1
push esi
call sym.EUFyncFtp.dll_libssh2_trace
add esp, 4
cmp dword [edi], ebx
je 0x10032331
mov edx, dword [esi + 0x10]
push ebx
push edx
push edi
call fcn.1002f8e0
add esp, 0xc
mov dword [esp + 0x10], 1
jmp case.0x10031e44.1
mov ecx, dword [edi]
lea eax, [esp + 0x1c]
push eax
push ecx
call fcn.1002acd0
add esp, 8
mov dword [esi + 0x10], eax
cmp eax, ebx
jne 0x10032382
cmp dword [esp + 0x1c], ebx
je case.0x10031e44.1
mov edx, dword [edi]
mov eax, dword [edx + 0x20c]
neg eax
sbb eax, eax
add eax, 0xb
mov ecx, esi
call fcn.100308e0
mov dword [esp + 0xc], 0xffffffff
jmp case.0x10031e44.1
push esi
call sym.EUFyncFtp.dll_libssh2_trace
mov eax, dword [esi + 0x10]
push ebx
push eax
jmp 0x1003211e
mov edx, dword [edi]
lea ecx, [esp + 0x2c]
push ecx
push edx
call fcn.1002c1d0
add esp, 8
mov dword [esi + 0x10], eax
cmp eax, ebx
jne 0x100323d7
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x1003222e
xor ecx, ecx
cmp eax, 1
sete cl
lea ecx, [ecx + ecx + 9]
mov eax, ecx
mov ecx, esi
call fcn.100308e0
mov dword [esp + 0xc], 0xffffffff
jmp case.0x10031e44.1
push esi
call sym.EUFyncFtp.dll_libssh2_trace
mov edx, dword [esi + 0x10]
push ebx
push edx
jmp 0x1003211e
mov eax, dword [edi]
push eax
push esi
call fcn.10059190
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.10031460
mov eax, dword [edi]
or edx, 0xffffffff
add esp, 0xc
cmp dword [eax + 0x26c], edx
jne 0x10032415
cmp dword [eax + 0x270], edx
lea eax, [edx + 0x10]
je 0x1003241a
mov eax, 0xc
mov ecx, esi
call fcn.100308e0
mov dword [esp + 0xc], edx
jmp case.0x10031e44.1
mov ebp, dword [edi]
cmp dword [ebp + 0x2a0], ebx
jne case.0x10031e44.1
mov eax, dword [ebp + 0x2ac]
push esi
call fcn.10031190
add esp, 4
test eax, eax
je case.0x10031e44.1
mov eax, 0xd
mov ecx, esi
mov dword [ebp + 0x2a0], 1
call fcn.100308e0
mov dword [esp + 0xc], 0xffffffff
jmp case.0x10031e44.1
mov edx, dword [edi]
push edx
call fcn.1003b4c0
add esp, 4
test eax, eax
je 0x1003248a
mov dword [esi + 0x10], 0x2a
jmp 0x100324a0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push eax
push ecx
push esi
call fcn.10056660
add esp, 0xc
mov dword [esi + 0x10], eax
mov ecx, dword [esi + 0x208]
mov eax, dword [esi + 0x20c]
mov edx, ecx
or edx, eax
je 0x100324d0
mov edx, dword [esi + 0x504]
cmp edx, eax
jg case.0x10031e44.1
jl 0x100324d0
mov eax, dword [esi + 0x500]
cmp eax, ecx
jae case.0x10031e44.1
mov ecx, dword [esi + 0x210]
mov eax, dword [esi + 0x214]
mov edx, ecx
or edx, eax
je 0x10032500
mov edx, dword [esi + 0x4fc]
cmp edx, eax
jg case.0x10031e44.1
jl 0x10032500
mov eax, dword [esi + 0x4f8]
cmp eax, ecx
jae case.0x10031e44.1
mov eax, 0xd
mov ecx, esi
call fcn.100308e0
jmp case.0x10031e44.1
mov eax, dword [esi + 0x20c]
mov ecx, dword [esi + 0x208]
xor ebp, ebp
cmp eax, ebx
mov dword [esp + 0x18], ebx
jl 0x1003258f
jg 0x1003252d
cmp ecx, ebx
jbe 0x1003258f
mov edx, dword [esi + 0x504]
cmp edx, eax
jl 0x1003258f
jg 0x10032543
mov eax, dword [esi + 0x500]
cmp eax, ecx
jbe 0x1003258f
mov eax, 0xe
mov ecx, esi
call fcn.100308e0
mov eax, dword [esi + 0x2b8]
cmp eax, ebx
jne 0x1003255e
mov eax, 0x4000
mov ecx, dword [esi + 0x504]
mov edx, dword [esi + 0x500]
push eax
mov eax, dword [esi + 0x20c]
push ecx
mov ecx, dword [esi + 0x208]
push edx
push eax
push ecx
call fcn.100578f0
push eax
push esi
call fcn.10031250
add esp, 0x1c
jmp case.0x10031e44.1
mov eax, dword [esi + 0x214]
cmp eax, ebx
mov ecx, dword [esi + 0x210]
jl 0x100325f2
jg 0x100325a5
cmp ecx, ebx
jbe 0x100325f2
mov edx, dword [esi + 0x4fc]
cmp edx, eax
jl 0x100325f2
jg 0x100325bb
mov eax, dword [esi + 0x4f8]
cmp eax, ecx
jbe 0x100325f2
mov eax, 0xe
mov ecx, esi
call fcn.100308e0
mov eax, dword [esi + 0x2b8]
cmp eax, ebx
jne 0x100325d6
mov eax, 0x4000
mov ecx, dword [esi + 0x4fc]
mov edx, dword [esi + 0x4f8]
push eax
mov eax, dword [esi + 0x214]
push ecx
mov ecx, dword [esi + 0x210]
jmp 0x10032578
mov eax, dword [edi]
lea edx, [esp + 0x20]
push edx
push eax
call fcn.10057550
add esp, 8
mov dword [esi + 0x10], eax
test byte [esi + 0xf8], 1
jne 0x10032616
mov ecx, dword [edi]
mov dword [ecx + 0x2a0], ebx
test byte [esi + 0xf8], 2
jne 0x10032627
mov edx, dword [edi]
mov dword [edx + 0x2a4], ebx
cmp dword [esp + 0x20], ebx
jne 0x10032633
cmp dword [esi + 0x10], 0x38
jne 0x10032661
mov ecx, dword [edi]
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.10058060
add esp, 8
test eax, eax
jne 0x10032661
xor edx, edx
cmp dword [esp + 0x18], ebx
setne dl
mov ebp, edx
cmp ebp, ebx
je 0x10032661
mov dword [esi + 0x10], ebx
mov dword [esp + 0x20], 1
cmp dword [esi + 0x10], ebx
je 0x100326ad
mov eax, dword [edi]
mov ecx, dword [eax + 0x260]
test byte [ecx + 0x40], 2
jne 0x1003267e
mov dword [eax + 0x1ec], 1
push esi
call sym.EUFyncFtp.dll_libssh2_trace
mov edx, dword [esi + 0x10]
push ebx
push edx
push edi
call fcn.1002f8e0
add esp, 0x10
mov eax, dword [esp + 0x18]
cmp eax, ebx
je case.0x10031e44.1
push eax
call dword [0x100b4004]
add esp, 4
jmp case.0x10031e44.1
cmp dword [esp + 0x20], ebx
je 0x10032692
push esi
call sym.EUFyncFtp.dll_libssh2_trace
mov eax, dword [edi]
mov ecx, dword [eax + 0x2ac]
push ecx
push esi
call fcn.1002a8f0
mov edx, dword [edi]
mov eax, dword [edx + 0x2ac]
add esp, 0xc
cmp dword [eax], ebx
je 0x100326e6
mov eax, dword [eax]
mov ecx, dword [eax]
push 1
push ecx
call fcn.10031250
add esp, 8
mov edx, dword [esp + 0x34]
push edx
call fcn.10031460
mov eax, dword [esi + 0x10c]
add esp, 4
cmp eax, ebx
jne 0x10032765
cmp ebp, ebx
jne 0x1003277a
cmp dword [esi + 0x108], ebx
je 0x1003274c
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x1003271b
push eax
call dword [0x100b4004]
add esp, 4
mov eax, dword [esi + 0x108]
push 1
push eax
push esi
mov dword [esp + 0x24], eax
mov dword [esi + 0x108], ebx
call fcn.10057d70
add esp, 0xc
mov dword [esi + 0x10], eax
cmp eax, ebx
jne 0x10032744
mov dword [esp + 0x18], ebx
jmp 0x1003274c
mov dword [esp + 0x10], 1
mov eax, 0xf
mov ecx, esi
call fcn.100308e0
mov dword [esp + 0xc], 0xffffffff
jmp 0x10032692
cmp ebp, ebx
jne 0x1003277a
mov dword [esp + 0x18], eax
mov dword [esi + 0x10c], ebx
mov ebp, 3
jmp 0x1003277f
mov ebp, 2
push ebx
push ebx
push edi
call fcn.1002f8e0
add esp, 0xc
mov dword [esi + 0x10], eax
cmp eax, ebx
jne 0x10032692
mov eax, dword [esp + 0x18]
push ebp
push eax
push esi
call fcn.10057d70
add esp, 0xc
mov dword [esi + 0x10], eax
cmp eax, ebx
jne 0x10032692
mov eax, 2
mov ecx, esi
call fcn.100308e0
mov dword [esp + 0xc], 0xffffffff
jmp case.0x10031e44.1
mov eax, dword [edi]
mov dword [esp + 0xc], 0xffffffff
cmp eax, ebx
je 0x10032803
mov ecx, dword [eax + 0x2ac]
push ecx
push esi
call fcn.1002a8f0
mov edx, dword [esp + 0x3c]
push edx
call fcn.10031460
push ebx
push ebx
push edi
call fcn.1002f8e0
add esp, 0x18
cmp dword [esi + 0x10], ebx
jne 0x100327fd
mov dword [esi + 0x10], eax
cmp dword [edi], ebx
je 0x10032803
mov dword [edi], ebx
cmp dword [esi + 0x458], ebx
je 0x1003281f
cmp dword [esi + 0x8708], 6
je 0x1003281f
xor eax, eax
mov ecx, esi
call fcn.100308e0
jmp case.0x10031e44.1
mov eax, 0x10
mov ecx, esi
call fcn.100308e0
jmp case.0x10031e44.1
push ebx
push esi
mov dword [edi], ebx
call fcn.10031250
add esp, 8
mov ecx, dword [esi + 0xc]
cmp ecx, 0x10
jge 0x100328bf
mov eax, dword [edi]
cmp dword [esi + 0x10], ebx
je 0x100328fb
mov dword [esi + 0x86c8], ebx
cmp eax, ebx
je 0x100328a5
mov dword [eax + 0x2a4], ebx
mov eax, dword [edi]
mov dword [eax + 0x2a0], ebx
mov ecx, dword [edi]
mov edx, dword [ecx + 0x2a8]
push edx
push esi
call fcn.1002a8f0
mov eax, dword [edi]
mov ecx, dword [eax + 0x2ac]
push ecx
push esi
call fcn.1002a8f0
mov edx, dword [esp + 0x44]
push edx
call fcn.10031460
add esp, 0x14
cmp dword [esp + 0x10], ebx
je 0x100328b3
mov eax, dword [edi]
push ebx
push eax
call fcn.1002ec90
add esp, 8
mov dword [edi], ebx
jmp 0x100328b3
cmp ecx, 2
jne 0x100328b3
push esi
call sym.EUFyncFtp.dll_libssh2_trace
add esp, 4
mov eax, 0x10
mov ecx, esi
call fcn.100308e0
mov ebp, dword [esp + 0xc]
cmp dword [esi + 0xc], 0x10
jne 0x100328f2
mov eax, dword [esp + 0x34]
lea ecx, [esi + 0x14]
mov dword [ecx], 1
mov dword [ecx + 4], esi
mov edx, dword [esi + 0x10]
mov dword [ecx + 8], edx
call fcn.10030a00
mov ebp, eax
mov eax, 0x11
mov ecx, esi
call fcn.100308e0
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x24
ret
cmp eax, ebx
je 0x100328bf
push eax
call fcn.1003b4c0
add esp, 4
test eax, eax
je 0x100328bf
mov ecx, dword [edi]
xor eax, eax
mov dword [esi + 0x10], 0x2a
mov dword [ecx + 0x1ec], 1
cmp dword [esi + 0xc], 0xf
mov ecx, esi
setge al
add eax, 0xf
call fcn.100308e0
or ebp, 0xffffffff
jmp 0x100328c3
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret
pop ebp
mov eax, 2
pop ebx
add esp, 0x24
ret