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

Disassembly:
jmp 0x1014d4d0
jmp 0x1014d910
jmp 0x1014cbd0
sub esp, 0x4c
push esi
mov esi, dword [esp + 0x54]
movzx eax, word [esi + 0x16]
cmp ax, 1
je 0x1014cbf2
cmp ax, 2
je 0x1014cbf2
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 0x1014cc0a
inc eax
movzx edx, ax
xor eax, eax
push ebx
lea ecx, [ecx]
cmp ax, dx
jae 0x1014cc27
mov cl, al
mov ebx, 1
shl ebx, cl
inc eax
or edi, ebx
cmp ax, 0x10
jb 0x1014cc10
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.100da02c
movzx eax, ax
add esp, 8
test ax, ax
jne 0x1014cf3d
mov ecx, dword [esp + 0x20]
push 0x10000
push ecx
call fcn.100de77b
add esp, 8
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x1014ccf2
mov edx, dword [esp + 0x20]
push edx
call fcn.100d90e6
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.100dc309
add esp, 0xc
xor ecx, ecx
cmp esi, 0x400
mov dword [esp + 0x1c], 0
jge 0x1014cf5f
xor ebx, ebx
cmp cx, bp
jae 0x1014ce64
mov edi, edi
mov eax, dword [esp + 0x10]
xor edx, edx
cmp eax, edx
je 0x1014cf45
cmp bx, word [esp + 0x24]
jb 0x1014ce53
cmp bx, word [esp + 0x34]
jae 0x1014ce53
cmp bx, word [esp + 0x38]
jb 0x1014cd9a
mov dword [esp + 0x14], 1
cmp bx, word [esp + 0x3c]
jb 0x1014cd9e
mov dword [esp + 0x14], edx
cmp bx, word [esp + 0x40]
jb 0x1014cdb4
mov dword [esp + 0x18], 1
cmp bx, word [esp + 0x44]
jb 0x1014cdb8
mov dword [esp + 0x18], edx
mov eax, dword [eax]
xor ecx, ecx
cmp cx, di
jae 0x1014ce46
mov esi, eax
cmp dx, word [esp + 0x24]
jb 0x1014ce3d
cmp dx, word [esp + 0x48]
jae 0x1014ce3d
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 0x1014ce39
cmp dword [esp + 0x14], 0
je 0x1014ce31
cmp dx, word [esp + 0x4c]
jb 0x1014ce31
cmp dx, word [esp + 0x50]
jae 0x1014ce31
cmp dword [esp + 0x18], 0
je 0x1014ce2c
cmp dx, word [esp + 0x54]
jb 0x1014ce2c
cmp dx, word [esp + 0x58]
jae 0x1014ce2c
add ecx, 4
jmp 0x1014ce32
add ecx, 2
jmp 0x1014ce32
inc ecx
inc dword [esp + 0x1c]
mov word [eax], cx
mov ebp, dword [esp + 0x30]
inc edx
add esi, 2
cmp dx, di
jb 0x1014cdc7
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 8]
mov dword [esp + 0x10], eax
jmp 0x1014ce5a
mov ecx, dword [eax + 8]
mov dword [esp + 0x10], ecx
inc ebx
cmp bx, bp
jb 0x1014cd60
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 0x1014cea6
inc eax
mov edx, 0x7fff
cmp ax, dx
jb 0x1014ce90
test ax, ax
jbe 0x1014ceb0
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 0x1014ceea
add ecx, 0xffff
test cx, cx
ja 0x1014ced4
mov eax, 0x7fff
cmp cx, ax
jae 0x1014cef5
inc ecx
mov edx, dword [esp + 0x70]
mov esi, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
push edx
mov edx, dword [0x10383d38]
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.100dc29b
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.100d90e6
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.100d90e6
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 0x1014ce64
jmp 0x1014cf74
xor edx, edx
cmp ebx, edx
je 0x1014d097
cmp cx, word [esp + 0x24]
jb 0x1014d070
cmp cx, word [esp + 0x34]
jae 0x1014d070
cmp cx, word [esp + 0x38]
jb 0x1014cfa8
mov dword [esp + 0x14], 1
cmp cx, word [esp + 0x3c]
jb 0x1014cfac
mov dword [esp + 0x14], edx
cmp cx, word [esp + 0x40]
jb 0x1014cfc2
mov dword [esp + 0x18], 1
cmp cx, word [esp + 0x44]
jb 0x1014cfc6
mov dword [esp + 0x18], edx
mov eax, dword [ebx]
xor esi, esi
cmp si, di
jae 0x1014d069
mov esi, eax
cmp dx, word [esp + 0x24]
jb 0x1014d05a
cmp dx, word [esp + 0x48]
jae 0x1014d05a
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 0x1014d052
cmp dword [esp + 0x14], 0
je 0x1014d04a
cmp dx, word [esp + 0x4c]
jb 0x1014d04a
cmp dx, word [esp + 0x50]
jae 0x1014d04a
cmp dword [esp + 0x18], 0
je 0x1014d045
cmp dx, word [esp + 0x54]
jb 0x1014d045
cmp dx, word [esp + 0x58]
jae 0x1014d045
add ecx, 4
jmp 0x1014d04b
add ecx, 2
jmp 0x1014d04b
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 0x1014cfd5
mov ebx, dword [ebx + 8]
test ebx, ebx
jmp 0x1014d075
mov ebx, dword [ebx + 8]
cmp ebx, edx
mov dword [esp + 0x10], ebx
je 0x1014d082
mov ebx, dword [ebx + 8]
mov dword [esp + 0x10], ebx
add ecx, 2
mov dword [esp + 0x30], ecx
cmp cx, bp
jb 0x1014cf72
jmp 0x1014ce64
mov ecx, dword [esp + 0x20]
push ecx
call fcn.100d90e6
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 0x1014d4f0
cmp ax, 2
je 0x1014d4f0
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.100dbb61
movzx eax, ax
add esp, 4
test ax, ax
jne 0x1014d7cc
mov ecx, dword [esp + 0x24]
push ebx
push 0x10000
push ecx
call fcn.100de77b
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x1014d5b4
mov edx, dword [esp + 0x28]
push edx
call fcn.100db8dc
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.100dc309
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 0x1014d7d3
cmp ax, word [esp + 0x20]
jae 0x1014d712
cmp ebp, edx
je 0x1014d8ed
cmp cx, word [esp + 0x2c]
jb 0x1014d6fb
cmp cx, word [esp + 0x30]
jae 0x1014d6fb
cmp cx, word [esp + 0x34]
jb 0x1014d656
mov dword [esp + 0x18], 1
cmp cx, word [esp + 0x38]
jb 0x1014d65a
mov dword [esp + 0x18], edx
cmp cx, word [esp + 0x3c]
jb 0x1014d670
mov dword [esp + 0x1c], 1
cmp cx, word [esp + 0x40]
jb 0x1014d674
mov dword [esp + 0x1c], edx
mov eax, dword [ebp]
xor esi, esi
cmp si, di
jae 0x1014d6f9
mov esi, eax
cmp dx, word [esp + 0x2c]
jb 0x1014d6f0
cmp dx, word [esp + 0x44]
jae 0x1014d6f0
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 0x1014d6e8
cmp dword [esp + 0x18], 0
je 0x1014d6df
cmp dx, word [esp + 0x48]
jb 0x1014d6df
cmp dx, word [esp + 0x4c]
jae 0x1014d6df
cmp dword [esp + 0x1c], 0
je 0x1014d6da
cmp dx, word [esp + 0x50]
jb 0x1014d6da
cmp dx, word [esp + 0x54]
jae 0x1014d6da
add ecx, 4
jmp 0x1014d6e0
add ecx, 2
jmp 0x1014d6e0
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 0x1014d680
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 0x1014d622
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 0x1014d751
inc edx
cmp edx, 0x8000
jl 0x1014d740
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 0x1014d782
dec ecx
test ecx, ecx
jg 0x1014d775
mov esi, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
lea eax, [ecx + ecx]
mov ecx, dword [esp + 0x6c]
push ecx
mov ecx, dword [0x10383d38]
push edx
mov word [esi], ax
mov eax, dword [esp + 0x78]
push eax
push ebx
push esi
push edi
push ecx
call fcn.100dc29b
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.100db8dc
add esp, 0x20
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x48
ret
cmp ax, word [esp + 0x20]
jae 0x1014d712
mov edi, edi
cmp ebp, edx
je 0x1014d8ed
cmp cx, word [esp + 0x2c]
jb 0x1014d8c4
cmp cx, word [esp + 0x30]
jae 0x1014d8c4
cmp cx, word [esp + 0x34]
jb 0x1014d814
mov dword [esp + 0x18], 1
cmp cx, word [esp + 0x38]
jb 0x1014d818
mov dword [esp + 0x18], edx
cmp cx, word [esp + 0x3c]
jb 0x1014d82e
mov dword [esp + 0x1c], 1
cmp cx, word [esp + 0x40]
jb 0x1014d832
mov dword [esp + 0x1c], edx
mov eax, dword [ebp]
xor esi, esi
cmp si, di
jae 0x1014d8bb
mov esi, eax
mov edi, edi
cmp dx, word [esp + 0x2c]
jb 0x1014d8b0
cmp dx, word [esp + 0x44]
jae 0x1014d8b0
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 0x1014d8a8
cmp dword [esp + 0x18], 0
je 0x1014d89f
cmp dx, word [esp + 0x48]
jb 0x1014d89f
cmp dx, word [esp + 0x4c]
jae 0x1014d89f
cmp dword [esp + 0x1c], 0
je 0x1014d89a
cmp dx, word [esp + 0x50]
jb 0x1014d89a
cmp dx, word [esp + 0x54]
jae 0x1014d89a
add ecx, 4
jmp 0x1014d8a0
add ecx, 2
jmp 0x1014d8a0
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 0x1014d840
mov ebp, dword [ebp + 8]
xor edx, edx
test ebp, ebp
jmp 0x1014d8c9
mov ebp, dword [ebp + 8]
cmp ebp, edx
mov dword [esp + 0x10], ebp
je 0x1014d8d6
mov ebp, dword [ebp + 8]
mov dword [esp + 0x10], ebp
add ecx, 2
mov dword [esp + 0x14], ecx
cmp cx, word [esp + 0x20]
jb 0x1014d7e0
jmp 0x1014d712
mov ecx, dword [esp + 0x28]
push ecx
call fcn.100db8dc
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 0x1014d952
cmp dword [eax + 0x424], 0
je 0x1014d952
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 0x1014d96a
mov dword [esp + 0x18], eax
mov dword [esp + 4], ecx
jmp 0x100dbd78
mov dword [esp + 0x18], eax
mov dword [esp + 4], ecx
jmp 0x100da4ff