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

Disassembly:
sub esp, 0x34
push ebx
push ebp
mov ebp, dword [esp + 0x40]
and dword [ebp + 0x1c], 0xffff7fff
push esi
mov esi, dword [ebp + 0x60]
call fcn.101048b0
mov ecx, eax
mov eax, 0x8000
mov dword [esp + 0x34], ecx
test dword [esi + 0x4c], eax
je 0x10104c1c
or dword [ebp + 0x1c], eax
mov dl, byte [esi + 0x74]
mov byte [ebp + 0x6c], dl
movzx edx, word [esi + 0x76]
mov word [ebp + 0x6e], dx
mov edx, dword [esi + 0x78]
mov dword [ebp + 0x70], edx
movzx edx, word [esi + 0x7e]
xor ebx, ebx
mov word [ebp + 0x74], dx
cmp ecx, ebx
je 0x10104c47
test dword [esi + 0x4c], eax
je 0x10104f31
mov eax, 0xffff
push edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x48]
push eax
lea edi, [esi + 0x38]
push edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
call fcn.10106100
add esp, 8
test eax, eax
jne 0x10104f28
jmp 0x10104c84
mov ebx, dword [esp + 0x28]
cmp byte [esp + 0x48], 0xa
jb 0x10104ee4
lea ecx, [esp + 0x1c]
push ecx
push edi
call fcn.10106140
add esp, 8
test eax, eax
jne 0x10104f28
mov eax, dword [esp + 0x1c]
cmp word [esp + 0x30], ax
jbe 0x10104cb7
movzx edx, ax
mov dword [esp + 0x30], edx
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.10106140
mov eax, dword [esp + 0x24]
add esp, 8
cmp word [esp + 0x34], ax
jbe 0x10104cd7
movzx ecx, ax
mov dword [esp + 0x34], ecx
lea edx, [esp + 0x1c]
push edx
push edi
call fcn.10106140
add esp, 8
test eax, eax
jne 0x10104f28
lea eax, [esp + 0x24]
push eax
push edi
call fcn.10106140
add esp, 8
test eax, eax
jne 0x10104f28
lea ecx, [esp + 0x40]
push ecx
push edi
call fcn.10106140
add esp, 8
test eax, eax
jne 0x10104f28
lea edx, [esp + 0x10]
push edx
push edi
call fcn.10106140
add esp, 8
test eax, eax
jne 0x10104f28
cmp word [esp + 0x24], ax
je 0x10104d46
mov ax, word [esp + 0x10]
movzx ecx, ax
cmp ecx, ebx
jne 0x10104eeb
lea edx, [esp + 0x2c]
push edx
push edi
call fcn.10106140
add esp, 8
test eax, eax
jne 0x10104f28
lea eax, [esp + 0x3c]
push eax
push edi
call fcn.10106140
add esp, 8
test eax, eax
jne 0x10104f28
lea ecx, [esp + 0x14]
push ecx
push edi
call fcn.10106140
add esp, 8
test eax, eax
jne 0x10104f28
cmp word [esp + 0x2c], ax
je 0x10104d9e
movzx edx, word [esp + 0x14]
cmp edx, dword [esp + 0x20]
jne 0x10104f09
lea eax, [esp + 0x48]
push eax
push edi
call fcn.10106100
push 0
push edi
call fcn.10106100
movzx cx, byte [esp + 0x58]
movzx eax, cx
add esp, 0x10
test ax, ax
je 0x10104ddf
add eax, 0xffff
push 0
push edi
mov dword [esp + 0x24], eax
call fcn.10106120
mov eax, dword [esp + 0x24]
add esp, 8
test ax, ax
jne 0x10104dc2
lea edx, [esp + 0x18]
push edx
add eax, 0xffff
push edi
mov dword [esp + 0x24], eax
call fcn.10106140
add esp, 8
test eax, eax
jne 0x10104f28
mov ebx, dword [esp + 0x2c]
test bx, bx
je 0x10104e21
mov ecx, dword [esp + 0x3c]
mov edx, dword [edi]
lea eax, [ebp + 0x4c]
push eax
call fcn.10104b40
add esp, 4
test eax, eax
jne 0x10104f28
mov ebx, dword [esp + 0x24]
test bx, bx
je 0x10104e48
mov edx, dword [edi]
lea ecx, [ebp + 0x40]
push ecx
mov ecx, dword [esp + 0x44]
call fcn.10104b40
add esp, 4
test eax, eax
jne 0x10104f28
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
movzx ecx, word [esp + 0x2c]
add dword [esp + 0x20], ecx
movzx edx, bx
add eax, edx
movzx edx, word [esp + 0x30]
cmp eax, edx
mov dword [esp + 0x28], eax
jl 0x10104e76
movzx eax, word [esp + 0x34]
cmp dword [esp + 0x20], eax
jge 0x10104f22
lea ebx, [esi + 0x88]
push ebx
call fcn.100ea210
push edi
call fcn.10105d00
push ebx
call fcn.100ea230
add esp, 0xc
call fcn.101048b0
mov ecx, 0x8000
test dword [esi + 0x4c], ecx
je 0x10104ea3
or dword [ebp + 0x1c], ecx
test eax, eax
je 0x10104ecc
mov dl, byte [esi + 0x74]
mov byte [ebp + 0x6c], dl
movzx edx, word [esi + 0x76]
mov word [ebp + 0x6e], dx
mov edx, dword [esi + 0x78]
mov dword [ebp + 0x70], edx
movzx edx, word [esi + 0x7e]
mov word [ebp + 0x74], dx
mov dword [esp + 0x38], eax
test dword [esi + 0x4c], ecx
je 0x10104f28
lea eax, [esp + 0x48]
push eax
push edi
call fcn.10106100
add esp, 8
test eax, eax
je 0x10104c80
jmp 0x10104f28
mov eax, 2
jmp 0x10104f28
movzx ecx, ax
push ebx
push ecx
push str.smb_t2_reply
push str._ERROR___s:_Cant_handle_misordered_parameters__d:_d_n
call fcn.10117cb0
add esp, 0x10
mov eax, 0x16
jmp 0x10104f28
push str.smb_t2_reply
push str._ERROR___s:_Cant_handle_misordered_data_n
call fcn.10117cb0
add esp, 8
mov eax, 0x16
jmp 0x10104f28
xor eax, eax
or dword [ebp + 0x1c], 2
mov ecx, dword [esp + 0x38]
pop edi
test ecx, ecx
je 0x10104f33
mov eax, ecx
pop esi
pop ebp
pop ebx
add esp, 0x34
ret