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

Disassembly:
sub esp, 0x4c
push esi
mov esi, dword [esp + 0x54]
movzx eax, word [esi + 0x16]
cmp ax, 1
je 0x100a7ed2
cmp ax, 2
je 0x100a7ed2
mov eax, 0x12e
pop esi
add esp, 0x4c
ret
movzx edx, word [esi + 0xc]
movzx eax, word [esi + 0x10]
push edi
xor edi, edi
mov dword [esp + 0x20], edi
cmp dx, ax
ja 0x100a7eea
inc eax
movzx edx, ax
xor eax, eax
push ebx
lea ecx, [ecx]
cmp ax, dx
jae 0x100a7f07
mov cl, al
mov ebx, 1
shl ebx, cl
inc eax
or edi, ebx
cmp ax, 0x10
jb 0x100a7ef0
mov dword [esp + 0x24], edi
movzx edi, word [esi + 0x1a]
mov ax, di
shr ax, 3
movzx eax, ax
mov dword [esp + 0x48], eax
push ebp
movzx ebp, word [esi + 0x24]
mov ebx, dword [esi + 0x36]
mov ecx, edi
sub ecx, eax
movzx edx, cx
mov ax, bp
shr ax, 3
movzx eax, ax
mov dword [esp + 0x38], eax
mov ecx, ebp
sub ecx, eax
mov ax, di
shr ax, 2
movzx eax, ax
mov dword [esp + 0x50], edx
movzx edx, cx
mov dword [esp + 0x54], eax
mov ecx, edi
sub ecx, eax
mov ax, bp
shr ax, 2
movzx eax, ax
mov dword [esp + 0x3c], edx
movzx edx, cx
mov ecx, ebp
sub ecx, eax
mov dword [esp + 0x58], edx
mov dword [esp + 0x40], eax
movzx edx, cx
lea eax, [esp + 0x20]
push 0
push eax
mov dword [esp + 0x38], ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x4c], edx
call fcn.1000a740
movzx eax, ax
add esp, 8
test ax, ax
jne 0x100a821d
mov ecx, dword [esp + 0x20]
push 0x10000
push ecx
call fcn.10009ed0
add esp, 8
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x100a7fd2
mov edx, dword [esp + 0x20]
push edx
call fcn.1000a3f0
add esp, 4
pop ebp
pop ebx
pop edi
mov eax, 0x66
pop esi
add esp, 0x4c
ret
movzx eax, bp
movzx ecx, di
lea esi, [eax + ecx]
mov eax, 0x51eb851f
imul esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
movzx eax, ax
mov ecx, ebp
sub ecx, eax
movzx edx, cx
mov ecx, edi
sub ecx, eax
mov dword [esp + 0x34], edx
push 0x10000
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
movzx edx, cx
push 0
push eax
mov dword [esp + 0x54], edx
call fcn.1002a420
add esp, 0xc
xor ecx, ecx
cmp esi, 0x400
mov dword [esp + 0x1c], 0
jge 0x100a823f
xor ebx, ebx
cmp cx, bp
jae 0x100a8144
mov edi, edi
mov eax, dword [esp + 0x10]
xor edx, edx
cmp eax, edx
je 0x100a8225
cmp bx, word [esp + 0x24]
jb 0x100a8133
cmp bx, word [esp + 0x34]
jae 0x100a8133
cmp bx, word [esp + 0x38]
jb 0x100a807a
mov dword [esp + 0x14], 1
cmp bx, word [esp + 0x3c]
jb 0x100a807e
mov dword [esp + 0x14], edx
cmp bx, word [esp + 0x40]
jb 0x100a8094
mov dword [esp + 0x18], 1
cmp bx, word [esp + 0x44]
jb 0x100a8098
mov dword [esp + 0x18], edx
mov eax, dword [eax]
xor ecx, ecx
cmp cx, di
jae 0x100a8126
mov esi, eax
cmp dx, word [esp + 0x24]
jb 0x100a811d
cmp dx, word [esp + 0x48]
jae 0x100a811d
mov ax, word [esi]
mov cx, word [esp + 0x28]
shr ax, 1
shr cx, 1
and ax, cx
mov ecx, dword [esp + 0x2c]
movzx eax, ax
lea eax, [ecx + eax*2]
movzx ecx, word [eax]
mov ebp, 0xfffc
cmp cx, bp
jae 0x100a8119
cmp dword [esp + 0x14], 0
je 0x100a8111
cmp dx, word [esp + 0x4c]
jb 0x100a8111
cmp dx, word [esp + 0x50]
jae 0x100a8111
cmp dword [esp + 0x18], 0
je 0x100a810c
cmp dx, word [esp + 0x54]
jb 0x100a810c
cmp dx, word [esp + 0x58]
jae 0x100a810c
add ecx, 4
jmp 0x100a8112
add ecx, 2
jmp 0x100a8112
inc ecx
inc dword [esp + 0x1c]
mov word [eax], cx
mov ebp, dword [esp + 0x30]
inc edx
add esi, 2
cmp dx, di
jb 0x100a80a7
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 8]
mov dword [esp + 0x10], eax
jmp 0x100a813a
mov ecx, dword [eax + 8]
mov dword [esp + 0x10], ecx
inc ebx
cmp bx, bp
jb 0x100a8040
mov eax, 0x51eb851f
mul dword [esp + 0x1c]
mov ecx, edx
shr ecx, 5
mov ebx, dword [esp + 0x2c]
mov edx, ecx
imul edx, dword [esp + 0x78]
mov eax, 0x66666667
imul edx
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
xor eax, eax
movzx edx, ax
movzx edx, word [ebx + edx*2]
sub esi, edx
js 0x100a8186
inc eax
mov edx, 0x7fff
cmp ax, dx
jb 0x100a8170
test ax, ax
jbe 0x100a8190
add eax, 0xffff
imul ecx, dword [esp + 0x7c]
mov edi, dword [esp + 0x64]
add eax, eax
mov word [edi], ax
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, 0x7fff
movzx edx, cx
movzx edx, word [ebx + edx*2]
sub eax, edx
js 0x100a81ca
add ecx, 0xffff
test cx, cx
ja 0x100a81b4
mov eax, 0x7fff
cmp cx, ax
jae 0x100a81d5
inc ecx
mov edx, dword [esp + 0x70]
mov esi, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
push edx
mov edx, dword [0x101ccc20]
add ecx, ecx
push eax
mov word [esi], cx
mov ecx, dword [esp + 0x7c]
push ecx
push ebx
push esi
push edi
push edx
call fcn.100a7900
mov cx, word [edi]
mov eax, dword [esp + 0x7c]
mov word [eax + 0x2a], cx
mov dx, word [esi]
mov word [eax + 0x2c], dx
mov eax, dword [esp + 0x3c]
push eax
call fcn.1000a3f0
add esp, 0x20
xor eax, eax
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x4c
ret
mov edx, dword [esp + 0x20]
push edx
call fcn.1000a3f0
add esp, 4
pop ebp
pop ebx
pop edi
mov eax, 2
pop esi
add esp, 0x4c
ret
xor eax, eax
xor edx, edx
mov dword [esp + 0x30], ecx
cmp ax, bp
jae 0x100a8144
jmp 0x100a8254
xor edx, edx
cmp ebx, edx
je 0x100a8377
cmp cx, word [esp + 0x24]
jb 0x100a8350
cmp cx, word [esp + 0x34]
jae 0x100a8350
cmp cx, word [esp + 0x38]
jb 0x100a8288
mov dword [esp + 0x14], 1
cmp cx, word [esp + 0x3c]
jb 0x100a828c
mov dword [esp + 0x14], edx
cmp cx, word [esp + 0x40]
jb 0x100a82a2
mov dword [esp + 0x18], 1
cmp cx, word [esp + 0x44]
jb 0x100a82a6
mov dword [esp + 0x18], edx
mov eax, dword [ebx]
xor esi, esi
cmp si, di
jae 0x100a8349
mov esi, eax
cmp dx, word [esp + 0x24]
jb 0x100a833a
cmp dx, word [esp + 0x48]
jae 0x100a833a
mov cx, word [esi]
mov ax, word [esp + 0x28]
shr ax, 1
shr cx, 1
and cx, ax
movzx eax, cx
movzx ecx, ax
mov eax, dword [esp + 0x2c]
lea eax, [eax + ecx*2]
movzx ecx, word [eax]
mov ebx, 0xfffc
cmp cx, bx
jae 0x100a8332
cmp dword [esp + 0x14], 0
je 0x100a832a
cmp dx, word [esp + 0x4c]
jb 0x100a832a
cmp dx, word [esp + 0x50]
jae 0x100a832a
cmp dword [esp + 0x18], 0
je 0x100a8325
cmp dx, word [esp + 0x54]
jb 0x100a8325
cmp dx, word [esp + 0x58]
jae 0x100a8325
add ecx, 4
jmp 0x100a832b
add ecx, 2
jmp 0x100a832b
inc ecx
inc dword [esp + 0x1c]
mov word [eax], cx
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x10]
add edx, 2
add esi, 4
cmp dx, di
jb 0x100a82b5
mov ebx, dword [ebx + 8]
test ebx, ebx
jmp 0x100a8355
mov ebx, dword [ebx + 8]
cmp ebx, edx
mov dword [esp + 0x10], ebx
je 0x100a8362
mov ebx, dword [ebx + 8]
mov dword [esp + 0x10], ebx
add ecx, 2
mov dword [esp + 0x30], ecx
cmp cx, bp
jb 0x100a8252
jmp 0x100a8144
mov ecx, dword [esp + 0x20]
push ecx
call fcn.1000a3f0
add esp, 4
pop ebp
pop ebx
pop edi
mov eax, 2
pop esi
add esp, 0x4c
ret
mov ecx, dword [esp + 4]
movzx eax, word [ecx + 0x16]
sub esp, 0x48
cmp ax, 1
je 0x100a87d0
cmp ax, 2
je 0x100a87d0
mov eax, 0x12e
add esp, 0x48
ret
push ebp
mov ebp, dword [ecx + 0x36]
push esi
movzx esi, word [ecx + 0x24]
push edi
movzx edi, word [ecx + 0x1a]
mov ax, di
shr ax, 3
movzx eax, ax
mov dword [esp + 0x44], eax
mov ecx, edi
sub ecx, eax
movzx edx, cx
mov ax, si
shr ax, 3
movzx eax, ax
mov dword [esp + 0x30], eax
mov ecx, esi
sub ecx, eax
mov ax, di
shr ax, 2
movzx eax, ax
mov dword [esp + 0x48], edx
movzx edx, cx
mov dword [esp + 0x4c], eax
mov ecx, edi
sub ecx, eax
mov ax, si
shr ax, 2
movzx eax, ax
mov dword [esp + 0x34], edx
movzx edx, cx
mov ecx, esi
sub ecx, eax
mov dword [esp + 0x50], edx
mov dword [esp + 0x38], eax
movzx edx, cx
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x40], edx
call fcn.10009b30
movzx eax, ax
add esp, 4
test ax, ax
jne 0x100a8aac
mov ecx, dword [esp + 0x24]
push ebx
push 0x10000
push ecx
call fcn.10009ed0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x100a8894
mov edx, dword [esp + 0x28]
push edx
call fcn.10009d90
add esp, 4
lea eax, [ebx + 0x66]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x48
ret
movzx eax, si
movzx ecx, di
lea esi, [eax + ecx]
mov ecx, dword [esp + 0x20]
mov eax, 0x51eb851f
imul esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
movzx eax, ax
sub ecx, eax
movzx edx, cx
mov ecx, edi
sub ecx, eax
mov dword [esp + 0x30], edx
push 0x10000
movzx edx, cx
push 0
push ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x50], edx
call fcn.1002a420
xor edx, edx
xor ecx, ecx
add esp, 0xc
xor eax, eax
cmp esi, 0x400
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], ecx
jge 0x100a8ab3
cmp ax, word [esp + 0x20]
jae 0x100a89f2
cmp ebp, edx
je 0x100a8bcd
cmp cx, word [esp + 0x2c]
jb 0x100a89db
cmp cx, word [esp + 0x30]
jae 0x100a89db
cmp cx, word [esp + 0x34]
jb 0x100a8936
mov dword [esp + 0x18], 1
cmp cx, word [esp + 0x38]
jb 0x100a893a
mov dword [esp + 0x18], edx
cmp cx, word [esp + 0x3c]
jb 0x100a8950
mov dword [esp + 0x1c], 1
cmp cx, word [esp + 0x40]
jb 0x100a8954
mov dword [esp + 0x1c], edx
mov eax, dword [ebp]
xor esi, esi
cmp si, di
jae 0x100a89d9
mov esi, eax
cmp dx, word [esp + 0x2c]
jb 0x100a89d0
cmp dx, word [esp + 0x44]
jae 0x100a89d0
movsx eax, word [esi]
sar eax, 1
sub eax, 0x4000
and eax, 0x7fff
movzx ecx, word [ebx + eax*2]
mov ebp, 0xfffc
cmp cx, bp
jae 0x100a89c8
cmp dword [esp + 0x18], 0
je 0x100a89bf
cmp dx, word [esp + 0x48]
jb 0x100a89bf
cmp dx, word [esp + 0x4c]
jae 0x100a89bf
cmp dword [esp + 0x1c], 0
je 0x100a89ba
cmp dx, word [esp + 0x50]
jb 0x100a89ba
cmp dx, word [esp + 0x54]
jae 0x100a89ba
add ecx, 4
jmp 0x100a89c0
add ecx, 2
jmp 0x100a89c0
inc ecx
inc dword [esp + 0x24]
mov word [ebx + eax*2], cx
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
inc edx
add esi, 2
cmp dx, di
jb 0x100a8960
xor edx, edx
mov ebp, dword [ebp + 8]
inc ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ecx
cmp cx, word [esp + 0x20]
jb 0x100a8902
mov eax, 0x51eb851f
mul dword [esp + 0x24]
mov ecx, edx
shr ecx, 5
mov edx, ecx
imul edx, dword [esp + 0x74]
mov eax, 0x66666667
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
xor edx, edx
lea ebx, [ebx]
movzx esi, word [ebx + edx*2]
sub eax, esi
js 0x100a8a31
inc edx
cmp edx, 0x8000
jl 0x100a8a20
imul ecx, dword [esp + 0x78]
mov edi, dword [esp + 0x60]
add edx, edx
mov word [edi], dx
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, 0x7fff
movzx edx, word [ebx + ecx*2]
sub eax, edx
js 0x100a8a62
dec ecx
test ecx, ecx
jg 0x100a8a55
mov esi, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
lea eax, [ecx + ecx]
mov ecx, dword [esp + 0x6c]
push ecx
mov ecx, dword [0x101ccc20]
push edx
mov word [esi], ax
mov eax, dword [esp + 0x78]
push eax
push ebx
push esi
push edi
push ecx
call fcn.100a7900
mov dx, word [edi]
mov eax, dword [esp + 0x78]
mov word [eax + 0x2a], dx
mov edx, dword [esp + 0x44]
mov cx, word [esi]
push edx
mov word [eax + 0x2c], cx
call fcn.10009d90
add esp, 0x20
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x48
ret
cmp ax, word [esp + 0x20]
jae 0x100a89f2
mov edi, edi
cmp ebp, edx
je 0x100a8bcd
cmp cx, word [esp + 0x2c]
jb 0x100a8ba4
cmp cx, word [esp + 0x30]
jae 0x100a8ba4
cmp cx, word [esp + 0x34]
jb 0x100a8af4
mov dword [esp + 0x18], 1
cmp cx, word [esp + 0x38]
jb 0x100a8af8
mov dword [esp + 0x18], edx
cmp cx, word [esp + 0x3c]
jb 0x100a8b0e
mov dword [esp + 0x1c], 1
cmp cx, word [esp + 0x40]
jb 0x100a8b12
mov dword [esp + 0x1c], edx
mov eax, dword [ebp]
xor esi, esi
cmp si, di
jae 0x100a8b9b
mov esi, eax
mov edi, edi
cmp dx, word [esp + 0x2c]
jb 0x100a8b90
cmp dx, word [esp + 0x44]
jae 0x100a8b90
movsx eax, word [esi]
sar eax, 1
sub eax, 0x4000
and eax, 0x7fff
movzx ecx, word [ebx + eax*2]
mov ebp, 0xfffc
cmp cx, bp
jae 0x100a8b88
cmp dword [esp + 0x18], 0
je 0x100a8b7f
cmp dx, word [esp + 0x48]
jb 0x100a8b7f
cmp dx, word [esp + 0x4c]
jae 0x100a8b7f
cmp dword [esp + 0x1c], 0
je 0x100a8b7a
cmp dx, word [esp + 0x50]
jb 0x100a8b7a
cmp dx, word [esp + 0x54]
jae 0x100a8b7a
add ecx, 4
jmp 0x100a8b80
add ecx, 2
jmp 0x100a8b80
inc ecx
inc dword [esp + 0x24]
mov word [ebx + eax*2], cx
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
add edx, 2
add esi, 4
cmp dx, di
jb 0x100a8b20
mov ebp, dword [ebp + 8]
xor edx, edx
test ebp, ebp
jmp 0x100a8ba9
mov ebp, dword [ebp + 8]
cmp ebp, edx
mov dword [esp + 0x10], ebp
je 0x100a8bb6
mov ebp, dword [ebp + 8]
mov dword [esp + 0x10], ebp
add ecx, 2
mov dword [esp + 0x14], ecx
cmp cx, word [esp + 0x20]
jb 0x100a8ac0
jmp 0x100a89f2
mov ecx, dword [esp + 0x28]
push ecx
call fcn.10009d90
add esp, 4
pop ebx
pop edi
pop esi
mov eax, 2
pop ebp
add esp, 0x48
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x100a8c32
cmp dword [eax + 0x424], 0
je 0x100a8c32
movzx edx, word [eax + 0x404]
mov ecx, dword [esp + 8]
mov word [ecx], dx
movzx edx, word [eax + 0x408]
mov eax, dword [esp + 0xc]
mov word [eax], dx
movzx edx, word [ecx]
mov ecx, dword [esp + 4]
mov word [ecx + 0x2a], dx
mov ax, word [eax]
mov word [ecx + 0x2c], ax
xor eax, eax
ret
mov ecx, dword [esp + 4]
cmp word [ecx + 0x2e], 0
jne 0x100a8c4a
mov dword [esp + 0x18], eax
mov dword [esp + 4], ecx
jmp 0x100a7eb0
mov dword [esp + 0x18], eax
mov dword [esp + 4], ecx
jmp 0x100a87b0