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

Disassembly:
sub esp, 0xd8
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0xd4], eax
push esi
mov esi, dword [esp + 0xe0]
push edi
mov dword [esp + 0x18], esi
cmp dword [esi + 0x3eb94], 2
lea edi, [esi + 0x3abf0]
jne 0x1013552a
mov eax, dword [esi]
cmp dword [eax + 0x13360], 0
je 0x1013552a
mov dword [edi + 0x376c], 1
mov dword [edi + 0x37f0], 0
mov dword [edi + 0x3770], 0
mov dword [edi + 0x37b0], 0
pop edi
pop esi
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.105116c0
add esp, 0xd8
ret
cmp dword [esi + 0x5cc68], 0
je 0x10135557
push 0
push 0
push edi
call fcn.10135f10
add esp, 0xc
pop edi
pop esi
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.105116c0
add esp, 0xd8
ret
push ebp
mov ebp, dword [esi + 0x5d054]
mov dword [esp + 0x20], ebp
cmp ebp, 6
jne 0x101355bb
mov ecx, dword [esi + 0x5cc2c]
mov eax, dword [esi + 0x5d198]
add ecx, 5
cmp eax, ecx
cmovle eax, ecx
cmp dword [edi + 0x218], eax
jle 0x10135591
cmp dword [esi + 0x3ede8], 1
jne 0x10135591
lea eax, [ebp - 5]
jmp 0x10135593
xor eax, eax
push eax
push dword [esi + 0x5d134]
push edi
call fcn.10135f10
add esp, 0xc
pop ebp
pop edi
pop esi
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.105116c0
add esp, 0xd8
ret
lea eax, [edi + 0x1d8]
mov dword [esp + 0x50], eax
mov eax, dword [edi + 0x218]
sar eax, 6
add eax, 3
mov dword [esp + 0x54], eax
lea eax, [ebp - 1]
mov dword [esp + 0x44], eax
mov eax, dword [edi + 0x3bb8]
push ebx
mov ebx, dword [esi + 0x3f1c8]
mov dword [esp + 0x34], ebx
mov al, byte [eax + 0x4d]
mov byte [esp + 0x13], al
test ebx, ebx
jne 0x10135631
push 0x1024
call fcn.1006eac0
mov ebx, eax
add esp, 4
mov dword [esp + 0x34], ebx
mov dword [esi + 0x3f1c8], ebx
test ebx, ebx
jne 0x10135631
push str.Failed_to_allocate_cpi__cdef_search_ctx
push 2
push dword [edi + 0x2c]
call fcn.1006e850
mov ebx, dword [esi + 0x3f1c8]
add esp, 0xc
mov dword [esp + 0x34], ebx
mov ecx, dword [esi + 0x3eee0]
xor edx, edx
mov eax, dword [edi + 0x3bb8]
mov esi, dword [edi + 0xd8]
add esi, 0x4c8
cmp byte [eax + 0x4d], dl
lea eax, [edi + 0x1d8]
mov dword [ebx + 4], eax
sete dl
mov dword [ebx], ecx
mov eax, dword [edi + 0x1e4]
xor ecx, ecx
add eax, 0xf
lea edx, [edx*2 + 1]
mov dword [esp + 0x18], edx
cdq
and edx, 0xf
add eax, edx
sar eax, 4
mov dword [ebx + 0x1008], eax
mov eax, dword [edi + 0x1e8]
add eax, 0xf
cdq
and edx, 0xf
add eax, edx
sar eax, 4
mov dword [ebx + 0x100c], eax
mov eax, dword [edi + 0x3bb8]
mov eax, dword [eax + 0x48]
add eax, 0xfffffff8
test eax, eax
cmovle eax, ecx
mov ecx, dword [esp + 0x18]
mov dword [ebx + 0xfbc], eax
mov eax, dword [edi + 0x218]
sar eax, 6
add eax, 3
mov dword [ebx + 0xfc8], ecx
mov dword [ebx + 0xfc0], eax
mov eax, dword [ebp*4 + 0x1074f828]
mov dword [ebx + 0xfb8], eax
mov dword [ebx + 0xfc4], ebp
mov dword [ebx + 0x101c], 0
mov eax, dword [edi + 0x3bb8]
push ecx
push 0
push 0
cmp byte [eax + 0x4c], 0
push 0
setne al
mov byte [ebx + 0x1020], al
mov eax, dword [edi + 0x3bb8]
push esi
mov esi, dword [esp + 0x34]
push dword [eax + 0x1c]
lea eax, [esi + 0x15120]
push eax
call fcn.100c5590
lea eax, [ebx + 8]
add esp, 0x1c
lea ebp, [ebx + 0xff0]
mov dword [esp + 0x28], eax
lea edx, [esi + 0x15128]
mov ebx, eax
mov ecx, dword [edx - 4]
mov dword [ebp - 0xc], ecx
mov eax, dword [edx]
mov dword [ebp], eax
test eax, eax
je 0x10135752
xor esi, esi
mov eax, 2
test ecx, ecx
cmovne eax, esi
jmp 0x10135760
xor eax, eax
test ecx, ecx
sete al
lea eax, [eax*2 + 1]
mov dword [ebp + 0xc], eax
lea esi, [edx - 8]
mov eax, 2
mov edi, ebx
sub eax, dword [edx - 4]
mov ecx, 0x14e
mov dword [ebp - 0x24], eax
add ebx, 0x538
mov eax, 2
sub eax, dword [edx]
add edx, 0x538
mov dword [ebp - 0x18], eax
add ebp, 4
sub dword [esp + 0x18], 1
rep movsd dword es:[edi], dword [esi]
jne 0x10135735
mov ebp, dword [esp + 0x20]
mov edx, 0x10130670
mov ebx, dword [esp + 0x34]
mov eax, dword [ebp + 0x3e7a8]
mov cl, byte [eax + 0x4c]
mov eax, 0x10130630
test cl, cl
cmove eax, edx
mov edx, 0x101363e0
mov dword [ebx + 0xfb0], eax
mov eax, 0x10136560
cmove eax, edx
mov dword [ebx + 0xfb4], eax
mov esi, dword [ebx + 0x1008]
imul esi, dword [ebx + 0x100c]
lea eax, [esi*4]
push eax
call fcn.1006eac0
add esp, 4
mov dword [ebx + 0x1018], eax
test eax, eax
jne 0x1013580f
push str.Failed_to_allocate_cdef_search_ctx__sb_index
push 2
push dword [ebp + 0x3ac1c]
call fcn.1006e850
add esp, 0xc
shl esi, 9
push esi
mov dword [ebx + 0x101c], 0
call fcn.1006eac0
add esp, 4
mov dword [ebx + 0x1010], eax
test eax, eax
jne 0x10135844
push str.Failed_to_allocate_cdef_search_ctx__mse_0_
push 2
push dword [ebp + 0x3ac1c]
call fcn.1006e850
add esp, 0xc
push esi
call fcn.1006eac0
add esp, 4
mov dword [ebx + 0x1014], eax
test eax, eax
jne 0x1013586c
push str.Failed_to_allocate_cdef_search_ctx__mse_1_
push 2
push dword [ebp + 0x3ac1c]
call fcn.1006e850
add esp, 0xc
cmp dword [ebp + 0x8f1d8], 1
jle 0x10135883
push ebp
call fcn.100a26d0
add esp, 4
jmp 0x101359c1
mov eax, dword [ebp + 0x3ac1c]
xor edx, edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], edx
cmp dword [ebx + 0x1008], edx
jle 0x101359c1
nop
xor esi, esi
mov dword [esp + 0x18], esi
cmp dword [ebx + 0x100c], esi
jle 0x101359ac
mov ebp, edx
mov dword [esp + 0x1c], esi
shl ebp, 4
mov dword [esp + 0x2c], ebp
nop
mov ecx, dword [ebx + 4]
mov edi, dword [ecx + 0x2c]
mov eax, edi
imul eax, dword [esp + 0x14]
mov edx, dword [ecx + 0x24]
mov dword [esp + 0x28], edi
add eax, esi
mov esi, 0x10
shl eax, 6
mov eax, dword [eax + edx]
mov dword [esp + 0x38], eax
mov eax, dword [ecx + 0xc]
sub eax, ebp
mov ebp, 0x10
cmp eax, ebp
cmovl ebp, eax
mov eax, dword [ecx + 0x10]
sub eax, dword [esp + 0x1c]
cmp eax, esi
cmovl esi, eax
imul edi, dword [esp + 0x2c]
add edi, dword [esp + 0x1c]
lea edx, [edx + edi*4]
xor edi, edi
test ebp, ebp
jle 0x10135988
xor eax, eax
test esi, esi
jle 0x10135931
nop dword [eax]
mov ecx, dword [edx + eax*4]
cmp byte [ecx + 0x88], 0
je 0x1013593f
inc eax
cmp eax, esi
jl 0x10135920
mov eax, dword [esp + 0x28]
inc edi
lea edx, [edx + eax*4]
cmp edi, ebp
jl 0x10135916
jmp 0x10135988
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x38]
test cl, 1
je 0x10135958
mov eax, dword [esi]
cmp eax, 0xf
je 0x10135988
cmp eax, 0xe
je 0x10135988
mov edx, dword [esp + 0x14]
test dl, 1
je 0x1013596d
mov eax, dword [esi]
cmp eax, 0xf
je 0x1013598c
cmp eax, 0xd
je 0x1013598c
push dword [ebx + 0x101c]
push ecx
push edx
push dword [esp + 0x3c]
push ebx
call fcn.10134e70
add esp, 0x14
inc dword [ebx + 0x101c]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add dword [esp + 0x1c], 0x10
inc eax
mov esi, eax
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
cmp eax, dword [ebx + 0x100c]
jl 0x101358c0
inc edx
mov dword [esp + 0x14], edx
cmp edx, dword [ebx + 0x1008]
jl 0x101358a0
mov ebp, dword [esp + 0x20]
mov eax, dword [ebx + 0x1014]
xor ecx, ecx
mov edi, dword [ebx + 0x1010]
mov esi, dword [ebx + 0x101c]
mov dword [esp + 0x50], eax
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x3c], 0xffffffff
mov eax, dword [eax*4 + 0x1074f828]
mov dword [esp + 0x14], esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x5c], edi
cmp byte [esp + 0x13], cl
jne 0x10135a11
imul eax, eax
cmp eax, 1
jne 0x10135a1a
xor eax, eax
jmp 0x10135a1f
dec eax
bsr eax, eax
inc eax
mov ecx, dword [ebp + 0x181fc]
xor ebx, ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
lea ebp, [ebx + 1]
nop word [eax + eax]
cmp ebx, eax
jg 0x10135bfb
push 0x40
lea eax, [esp + 0xa8]
push 0
push eax
call fcn.10513d40
mov ecx, ebx
add esp, 0xc
shl ebp, cl
cmp byte [esp + 0x13], 0
mov dword [esp + 0x4c], ebp
jne 0x10135b35
xor ecx, ecx
xor esi, esi
mov edi, closesocket
test ebp, ebp
jle 0x10135aad
mov ebx, dword [esp + 0x14]
push dword [esp + 0x24]
lea eax, [esp + 0x60]
push ebx
push eax
push esi
lea eax, [esp + 0xb4]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.101371c0
inc esi
add esp, 0x18
mov ecx, eax
mov edi, edx
cmp esi, ebp
jl 0x10135a80
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
lea eax, [ebp*4]
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x10135b4d
mov ebx, dword [esp + 0x24]
dec ebp
nop dword [eax]
test ebp, ebp
jle 0x10135b03
lea eax, [ebp*4]
mov ecx, eax
lea esi, [esp + 0xa8]
shr ecx, 2
lea edi, [esp + 0xa4]
rep movsd dword es:[edi], dword [esi]
shr eax, 2
lea esi, [esp + 0x68]
mov ecx, eax
lea edi, [esp + 0x64]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x14]
push ebx
push esi
lea eax, [esp + 0x64]
push eax
push ebp
lea eax, [esp + 0xb4]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.101371c0
add esp, 0x18
mov ecx, eax
sub dword [esp + 0x2c], 1
mov edi, edx
jne 0x10135ad0
mov ebp, dword [esp + 0x4c]
mov ebx, dword [esp + 0x1c]
jmp 0x10135b4d
push dword [esp + 0x24]
lea eax, [esp + 0x68]
push esi
push edi
push ebp
push eax
call fcn.10136df0
add esp, 0x14
mov ecx, eax
mov edi, edx
cmp byte [esp + 0x13], 0
mov edx, 0xc
mov eax, 6
cmove eax, edx
imul eax, ebp
add eax, dword [esp + 0x18]
shl eax, 9
imul dword [esp + 0x44]
add eax, 0x100
adc edx, 0
shld edi, ecx, 0xb
shrd eax, edx, 9
shl ecx, 0xb
sar edx, 9
add eax, ecx
adc edx, edi
cmp edx, dword [esp + 0x3c]
ja 0x10135bdc
jb 0x10135b95
cmp eax, dword [esp + 0x38]
jae 0x10135bdc
mov edi, dword [esp + 0x20]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x64]
shl ebp, 2
push ebp
push eax
lea eax, [edi + 0x3e360]
mov dword [esp + 0x44], edx
push eax
mov dword [esp + 0x3c], ebx
call fcn.105137c0
add esp, 0xc
cmp byte [esp + 0x13], 0
jne 0x10135bdc
push ebp
lea eax, [esp + 0xa8]
push eax
lea eax, [edi + 0x3e3a0]
push eax
call fcn.105137c0
add esp, 0xc
add dword [esp + 0x18], esi
inc ebx
mov edi, dword [esp + 0x28]
mov ebp, 1
mov eax, dword [esp + 0x40]
mov dword [esp + 0x1c], ebx
cmp ebx, 3
jle 0x10135a40
mov eax, dword [esp + 0x20]
xor edi, edi
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
shl ebp, cl
mov dword [eax + 0x3e3e0], ecx
mov dword [eax + 0x3e35c], ebp
mov dword [esp + 0x3c], edi
test esi, esi
jle 0x10135cff
xor ebp, ebp
mov dword [esp + 0x2c], ebp
nop dword [eax]
or edx, 0xffffffff
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x30], edx
xor esi, esi
xor edx, edx
mov dword [esp + 0x40], edx
cmp dword [eax + 0x3e35c], edx
jle 0x10135cbd
mov ebx, dword [esp + 0x44]
lea edi, [eax + 0x3e3a0]
nop dword [eax]
mov eax, dword [edi - 0x40]
mov edx, dword [esp + 0x28]
add eax, ebp
cmp byte [esp + 0x13], 0
mov ecx, dword [edx + eax*8]
mov edx, dword [edx + eax*8 + 4]
jne 0x10135c8b
mov eax, dword [edi]
add eax, ebp
mov ebp, dword [esp + 0x50]
add ecx, dword [ebp + eax*8]
adc edx, dword [ebp + eax*8 + 4]
mov ebp, dword [esp + 0x2c]
cmp edx, dword [esp + 0x30]
ja 0x10135ca1
jb 0x10135c97
cmp ecx, ebx
jae 0x10135ca1
mov dword [esp + 0x40], esi
mov ebx, ecx
mov dword [esp + 0x30], edx
mov eax, dword [esp + 0x20]
inc esi
add edi, 4
cmp esi, dword [eax + 0x3e35c]
jl 0x10135c60
mov ebx, dword [esp + 0x34]
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
mov eax, dword [ebx + 0x1018]
add ebp, 0x40
shl dl, 3
mov dword [esp + 0x2c], ebp
mov ecx, dword [eax + edi*4]
inc edi
mov eax, dword [esp + 0x54]
mov dword [esp + 0x3c], edi
mov eax, dword [eax + 0x24]
mov ecx, dword [eax + ecx*4]
mov al, byte [ecx + 0xa0]
xor al, dl
and al, 0x87
xor al, dl
mov byte [ecx + 0xa0], al
mov eax, dword [esp + 0x20]
cmp edi, dword [esp + 0x14]
jl 0x10135c30
cmp dword [esp + 0x48], 4
ja 0x10135e7c
xor ebp, ebp
cmp dword [eax + 0x3e35c], ebp
jle 0x10135e7c
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
add esi, 0x3e3a0
lea eax, [edx - 1]
mov ebx, eax
nop dword [eax + eax]
mov eax, dword [esi - 0x40]
mov edi, dword [esi]
cmp edx, 5
jne 0x10135d48
xor edx, edx
mov dword [esp + 0x28], eax
xor ecx, ecx
mov dword [esp + 0x1c], ecx
jmp switch.0x10135d6f
xor ecx, ecx
cmp edx, 3
cdq
setl cl
lea ecx, [ecx*2 + 2]
idiv ecx
cmp dword [esp + 0x24], 0
mov ecx, edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], ecx
je case.default.0x10135d6f
jmp dword [ebx*4 + 0x10135ee4]
mov eax, dword [eax*4 + 0x1074f7d8]
mov ecx, dword [esp + 0x1c]
lea eax, [ecx + eax*4]
mov dword [esi - 0x40], eax
xor ecx, ecx
mov eax, edi
cmp dword [esp + 0x24], 3
cdq
setl cl
lea ecx, [ecx*2 + 2]
idiv ecx
cmp dword [esp + 0x24], 0
mov edi, eax
mov ecx, edx
je case.default.0x10135dac
jmp dword [ebx*4 + 0x10135ef8]
cmp dword [esp + 0x24], 5
mov eax, dword [esp + 0x28]
lea eax, [ecx + eax*4]
mov dword [esi - 0x40], eax
jne 0x10135d87
xor edx, edx
mov eax, edi
xor ecx, ecx
jmp switch.0x10135dac
mov eax, dword [edi*4 + 0x1074f7d8]
jmp case.default.0x10135dac
mov edx, dword [esp + 0x24]
lea eax, [ecx + eax*4]
mov dword [esi], eax
inc ebp
mov eax, dword [esp + 0x20]
add esi, 4
cmp ebp, dword [eax + 0x3e35c]
jl 0x10135d30
mov ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0x58]
mov dword [eax + 0x3e358], ecx
push dword [ebx + 0x1010]
call fcn.1006eaa0
push dword [ebx + 0x1014]
mov dword [ebx + 0x1010], 0
call fcn.1006eaa0
mov dword [ebx + 0x1014], 0
push dword [ebx + 0x1018]
call fcn.1006eaa0
mov ecx, dword [esp + 0xf0]
add esp, 0xc
mov dword [ebx + 0x1018], 0
pop ebx
pop ebp
pop edi
pop esi
xor ecx, esp
call fcn.105116c0
add esp, 0xd8
ret