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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov esi, esp
mov eax, dword [0x101db764]
mov ebx, dword [ebp + 8]
xor eax, ebp
mov dword [esi + 0x98], eax
mov ecx, dword [ebx + 0x90c]
cmp ecx, dword [ebx + 0x103c]
je 0x10158be2
mov edi, dword [ebx + 0x924]
mov eax, 0x7fff
xor edx, edx
lea ebx, [edi + 1]
idiv ebx
test edi, edi
jle 0x10158bc5
mov edx, dword [ebp + 8]
mov ebx, eax
lea edx, [edx + 0xfd4]
mov word [edx], bx
add ebx, eax
add edx, 2
dec edi
jne 0x10158bba
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x1034], 0
mov dword [ebx + 0x1038], 0x307880
mov dword [ebx + 0x103c], ecx
cmp dword [ebx + 0x1040], 0
jne 0x10158d39
cmp dword [ebx + 0x1044], 0
jne 0x10158d27
mov eax, dword [ebp + 8]
mov ecx, eax
mov eax, dword [eax + 0x924]
mov edi, ecx
test eax, eax
jle 0x10158c4d
xor ecx, ecx
movsx edx, word [edi + ecx*2 + 0x928]
movsx edi, word [edi + ecx*2 + 0xfd4]
sub edx, edi
movzx ebx, dx
shr edx, 0x10
imul ebx, ebx, 0x3fdc
imul edx, edx, 0x3fdc
shr ebx, 0x10
add ebx, edx
add ebx, edi
mov edi, dword [ebp + 8]
mov word [edi + ecx*2 + 0xfd4], bx
mov edi, dword [ebp + 8]
inc ecx
cmp ecx, eax
jl 0x10158c0f
lea eax, [edi + 0xad4]
mov dword [esi + 4], eax
mov eax, dword [edi + 0x914]
test eax, eax
jle 0x10158c86
mov edi, dword [ebp + 0xc]
xor ecx, ecx
xor ebx, ebx
xor edx, edx
mov dword [esi + 8], eax
mov eax, edi
mov edi, dword [edi + ecx*4 + 0x10]
cmp edi, edx
cmovge edx, edi
mov edi, eax
mov eax, dword [esi + 8]
cmovg ebx, ecx
inc ecx
cmp ecx, eax
jl 0x10158c6c
jmp 0x10158c8d
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
mov edi, ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
lea eax, [eax*4 - 4]
mov ecx, dword [ecx + 0x91c]
imul eax, ecx
lea edx, [edx + ecx*4 + 0xad4]
push eax
push dword [esi + 4]
push edx
call fcn.10161960
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x91c]
imul ebx, eax
shl eax, 2
lea ecx, [edx + ebx*4 + 4]
mov ebx, edx
push eax
push ecx
push dword [esi + 4]
call fcn.101613e0
add esp, 0xc
mov eax, dword [ebx + 0x914]
test eax, eax
mov dword [esi + 8], eax
jle 0x10158d27
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [eax + 0x1034]
mov eax, edi
mov edi, dword [edi + ecx*4 + 0x10]
inc ecx
sub edi, edx
mov ebx, edi
sar ebx, 0x10
imul ebx, ebx, 0x121a
add ebx, edx
movzx edx, di
mov edi, eax
mov eax, dword [ebp + 8]
imul edx, edx, 0x121a
shr edx, 0x10
add ebx, edx
cmp ecx, dword [esi + 8]
mov edx, ebx
mov dword [eax + 0x1034], ebx
jl 0x10158cf1
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1040], 0
mov ebx, eax
je 0x10158e1a
mov eax, dword [ebp + 0x14]
lea eax, [eax*4 + 0x40]
call fcn.1015e8d0
mov eax, esp
and eax, 0xfffffff0
mov dword [esi + 4], eax
mov esp, eax
mov ecx, dword [ebx + 0x1098]
movsx eax, word [ebx + 0x1084]
movsx edx, cx
sar ecx, 0xf
movzx edi, ax
inc ecx
imul edi, edx
sar ecx, 1
sar edi, 0x10
imul ecx, eax
sar eax, 0x10
imul eax, edx
add edi, eax
mov eax, dword [ebx + 0x1034]
add ecx, edi
mov edx, ecx
sar edx, 0x10
cmp ecx, 0x1fffff
jg 0x10158dec
cmp eax, 0x800001
jge 0x10158dec
movsx edi, cx
movzx ebx, di
imul edx, edi
imul ebx, edi
mov edi, eax
sar ebx, 0x10
sar edi, 0x10
add ebx, edx
mov edx, ecx
sar edx, 0xf
inc edx
shr edx, 1
imul edx, ecx
movsx ecx, ax
add edx, ebx
movzx ebx, cx
imul edi, ecx
imul ebx, ecx
mov ecx, eax
shl edx, 5
sar ecx, 0xf
sub edi, edx
sar ebx, 0x10
inc ecx
add edi, ebx
sar ecx, 1
imul ecx, eax
add edi, ecx
test edi, edi
jle 0x10158e08
je 0x10158e37
bsr eax, edi
xor eax, 0x1f
jmp 0x10158e3c
sar eax, 0x10
imul edx, edx
imul eax, eax
shl edx, 5
sub eax, edx
jle 0x10158e0b
test eax, eax
je 0x10158e53
bsr ebx, eax
xor ebx, 0x1f
jmp 0x10158e58
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
mov dword [esi + 0xc], 0
jmp 0x10158f10
mov eax, dword [ebx + 0x924]
add ebx, 0xff4
shl eax, 2
push eax
push 0
push ebx
call fcn.10161ee0
jmp 0x10159360
mov eax, 0x20
mov edx, 0x18
sub edx, eax
mov ecx, edx
neg ecx
test edx, edx
je 0x10158e7f
js 0x10158e72
mov ecx, edx
ror edi, cl
jmp 0x10158e7f
mov ebx, 0x20
mov edx, 0x18
mov edi, dword [ebp + 0x14]
sub edx, ebx
mov ecx, edx
neg ecx
test edx, edx
je 0x10158ecd
js 0x10158ebd
mov ecx, edx
ror eax, cl
jmp 0x10158ecd
mov ebx, edi
add edx, 0x20
shl ebx, cl
mov ecx, edx
shr edi, cl
or edi, ebx
and edi, 0x7f
test al, 1
mov ecx, 0xb486
mov edx, 0x8000
cmove edx, ecx
shr eax, 1
mov ecx, eax
imul eax, edi, 0xd50000
mov edi, dword [ebp + 0x14]
shr edx, cl
shr eax, 0x10
mov ebx, edx
movzx ecx, dx
sar ebx, 0x10
imul ecx, eax
imul ebx, eax
shr ecx, 0x10
add ebx, edx
add ebx, ecx
shl ebx, 8
jmp 0x10158f0a
mov edi, eax
add edx, 0x20
shl edi, cl
mov ecx, edx
shr eax, cl
or eax, edi
mov edi, dword [ebp + 0x14]
and eax, 0x7f
test bl, 1
mov ecx, 0xb486
mov edx, 0x8000
cmove edx, ecx
shr ebx, 1
imul eax, eax, 0xd50000
mov ecx, ebx
shr eax, 0x10
shr edx, cl
mov ebx, edx
movzx ecx, dx
shr ebx, 0x10
imul ecx, eax
imul ebx, eax
add ebx, edx
shl ebx, 0x10
add ebx, ecx
and ebx, 0xffff0000
mov dword [esi + 0xc], ebx
mov ebx, dword [ebp + 8]
mov eax, dword [esi + 4]
mov edx, 0xff
lea eax, [eax + 0x40]
mov ecx, edx
sar edx, 1
cmp ecx, edi
jg 0x10158f1b
mov edx, dword [ebx + 0x1038]
test edi, edi
jle 0x10158f58
imul edx, edx, 0xbb38435
mov dword [esi + 8], eax
mov eax, dword [ebp + 8]
add edx, 0x3619636b
mov ebx, edx
sar ebx, 0x18
and ebx, ecx
mov ebx, dword [eax + ebx*4 + 0xad4]
mov eax, dword [esi + 8]
mov dword [eax], ebx
add eax, 4
dec edi
jne 0x10158f2d
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x78]
mov edi, eax
mov dword [eax + 0x1038], edx
lea eax, [eax + 0xfd4]
push dword [edi + 0x1048]
push dword [edi + 0x924]
push eax
push ecx
call fcn.1015d4a4
add esp, 0x10
lea eax, [edi + 0xff4]
push 0x40
mov dword [esi + 0x38], eax
push eax
push dword [esi + 4]
call fcn.101613e0
add esp, 0xc
mov eax, dword [ebp + 0x14]
test eax, eax
jle 0x1015934f
movsx eax, word [esi + 0x78]
mov ecx, dword [esi + 0xc]
mov ebx, edi
mov dword [esi + 0x6c], eax
movsx eax, word [esi + 0x7a]
mov dword [esi + 0x68], eax
movsx eax, word [esi + 0x7c]
mov dword [esi + 0x64], eax
mov eax, ecx
sar ecx, 0x15
shr eax, 6
inc ecx
cwde
sar ecx, 1
mov dword [esi + 0x60], eax
movsx eax, word [esi + 0x7e]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x5c], eax
movsx eax, word [esi + 0x80]
mov dword [esi + 0x58], eax
movsx eax, word [esi + 0x82]
mov dword [esi + 0x54], eax
movsx eax, word [esi + 0x84]
mov dword [esi + 0x50], eax
movsx eax, word [esi + 0x86]
mov dword [esi + 0x4c], eax
movsx eax, word [esi + 0x88]
mov dword [esi + 0x48], eax
movsx eax, word [esi + 0x8a]
mov dword [esi + 0x44], eax
movsx eax, word [esi + 0x8c]
mov dword [esi + 0x40], eax
movsx eax, word [esi + 0x8e]
mov dword [esi + 0x24], eax
movsx eax, word [esi + 0x90]
mov dword [esi + 0x20], eax
movsx eax, word [esi + 0x92]
mov dword [esi + 0x1c], eax
movsx eax, word [esi + 0x94]
mov dword [esi + 0x18], eax
movsx eax, word [esi + 0x96]
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 4]
mov edx, dword [eax + 0x34]
mov ecx, dword [eax + 0x3c]
mov dword [esi + 0x34], edx
mov edx, dword [eax + 0x2c]
mov dword [esi + 0x2c], edx
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0x24]
mov dword [esi + 0x28], edx
xor edx, edx
mov dword [esi + 0x30], eax
jmp 0x10159083
or ecx, eax
mov ecx, 0x7fffffff
js 0x101592c7
jmp 0x101592c9
mov eax, dword [esi + 0x6c]
mov edi, dword [ebx + 0x924]
mov ebx, ecx
mov dword [esi + 8], edx
movzx ecx, cx
sar ebx, 0x10
mov edx, dword [esi + 8]
imul ecx, eax
imul ebx, eax
mov eax, dword [esi + 4]
mov dword [esi + 0x14], edi
sar edi, 1
add ebx, edi
sar ecx, 0x10
mov edi, dword [esi + 0x34]
add ecx, ebx
mov edx, dword [eax + edx*4 + 0x38]
mov eax, dword [esi + 0x68]
mov ebx, edx
mov dword [esi + 0x34], edx
sar ebx, 0x10
imul ebx, eax
add ebx, ecx
movzx ecx, dx
imul ecx, eax
mov eax, dword [esi + 0x64]
sar ecx, 0x10
add ecx, ebx
mov ebx, edi
sar ebx, 0x10
imul ebx, eax
add ebx, ecx
movzx ecx, di
mov edi, dword [esi + 4]
imul ecx, eax
mov eax, dword [esi + 0x2c]
sar ecx, 0x10
add ecx, ebx
mov dword [esi + 0x10], eax
mov eax, dword [esi + 8]
mov edx, dword [edi + eax*4 + 0x30]
mov eax, dword [esi + 0x5c]
mov ebx, edx
mov dword [esi + 0x2c], edx
sar ebx, 0x10
imul ebx, eax
add ebx, ecx
movzx ecx, dx
mov edx, dword [esi + 0x10]
imul ecx, eax
mov eax, dword [esi + 0x58]
sar ecx, 0x10
add ecx, ebx
mov ebx, edx
sar ebx, 0x10
imul ebx, eax
add ebx, ecx
movzx ecx, dx
imul ecx, eax
mov eax, dword [esi + 0x30]
sar ecx, 0x10
add ecx, ebx
mov dword [esi + 0x10], eax
mov eax, dword [esi + 8]
mov edx, dword [edi + eax*4 + 0x28]
mov eax, dword [esi + 0x54]
mov edi, dword [esi + 8]
mov ebx, edx
mov dword [esi + 0x30], edx
sar ebx, 0x10
imul ebx, eax
add ebx, ecx
movzx ecx, dx
mov edx, dword [esi + 0x10]
imul ecx, eax
mov eax, dword [esi + 0x50]
sar ecx, 0x10
add ecx, ebx
mov ebx, edx
sar ebx, 0x10
imul ebx, eax
add ebx, ecx
movzx ecx, dx
imul ecx, eax
mov eax, dword [esi + 0x28]
sar ecx, 0x10
add ecx, ebx
mov dword [esi + 0x10], eax
mov eax, dword [esi + 4]
mov edx, dword [eax + edi*4 + 0x20]
mov eax, dword [esi + 0x4c]
mov ebx, edx
mov dword [esi + 0x28], edx
sar ebx, 0x10
imul ebx, eax
add ebx, ecx
movzx ecx, dx
mov edx, edi
mov edi, dword [esi + 0x10]
imul ecx, eax
mov eax, dword [esi + 0x48]
sar ecx, 0x10
add ecx, ebx
mov ebx, edi
sar ebx, 0x10
imul ebx, eax
add ebx, ecx
movzx ecx, di
imul ecx, eax
mov eax, dword [esi + 4]
sar ecx, 0x10
add ecx, ebx
mov edi, dword [eax + edx*4 + 0x18]
mov eax, dword [esi + 0x44]
mov ebx, edi
sar ebx, 0x10
imul ebx, eax
add ebx, ecx
movzx ecx, di
imul ecx, eax
sar ecx, 0x10
add ecx, ebx
cmp dword [esi + 0x14], 0x10
jne 0x1015928d
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
mov ebx, dword [esi + 0x40]
mov eax, dword [eax + edx*4 + 0x14]
movzx edi, ax
sar eax, 0x10
imul eax, ebx
imul edi, ebx
mov ebx, dword [esi + 4]
add eax, ecx
sar edi, 0x10
add eax, edi
mov ecx, dword [ebx + edx*4 + 0x10]
movzx edi, cx
sar ecx, 0x10
imul ecx, dword [esi + 0x24]
imul edi, dword [esi + 0x24]
add eax, ecx
mov ecx, dword [ebx + edx*4 + 0xc]
sar edi, 0x10
add eax, edi
movzx edi, cx
sar ecx, 0x10
imul ecx, dword [esi + 0x20]
imul edi, dword [esi + 0x20]
add eax, ecx
mov ecx, dword [ebx + edx*4 + 8]
sar edi, 0x10
add eax, edi
movzx edi, cx
sar ecx, 0x10
imul ecx, dword [esi + 0x1c]
imul edi, dword [esi + 0x1c]
add eax, ecx
mov ecx, dword [ebx + edx*4 + 4]
sar edi, 0x10
add eax, edi
movzx edi, cx
sar ecx, 0x10
imul ecx, dword [esi + 0x18]
imul edi, dword [esi + 0x18]
add eax, ecx
mov ecx, dword [ebx + edx*4]
mov edx, ebx
mov ebx, dword [esi + 0x3c]
sar edi, 0x10
add eax, edi
mov edi, ecx
movzx ecx, cx
sar edi, 0x10
imul ecx, ebx
imul edi, ebx
sar ecx, 0x10
mov ebx, edx
add eax, edi
add eax, ecx
mov ecx, eax
jmp 0x10159290
mov ebx, dword [esi + 4]
mov edx, dword [esi + 8]
cmp ecx, 0xf7ffffff
mov eax, dword [ebx + edx*4 + 0x40]
jg 0x101592a4
mov ecx, 0xf8000000
cmp ecx, 0x8000000
jl 0x101592b1
mov ecx, 0x7ffffff
shl ecx, 4
mov edi, ecx
add edi, eax
js 0x10159071
test ecx, eax
mov ecx, 0x80000000
js 0x101592c9
mov ecx, edi
mov eax, dword [ebp + 0x10]
mov dword [ebx + edx*4 + 0x40], ecx
mov edi, edx
mov edi, ecx
mov ebx, ecx
imul edi, dword [esi + 0xc]
sar ebx, 0x10
movsx eax, word [eax + edx*2]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x60]
imul ebx, eax
add edi, ebx
movzx ebx, cx
imul ebx, eax
sar ebx, 0x10
add edi, ebx
mov ebx, 0xffff8000
cmp edi, 0xff7fff80
jl 0x1015930c
mov ebx, edi
sar ebx, 7
inc ebx
sar ebx, 1
cmp edi, 0x7fff7f
mov eax, 0x7fff
mov edi, 0x7fff
jg 0x10159320
mov edi, ebx
add edi, dword [esi + 0x14]
cmp edi, 0xffff7fff
jg 0x10159330
mov edi, 0xffff8000
mov ebx, dword [ebp + 8]
cmp edi, eax
jl 0x1015933c
mov edi, 0x7fff
mov eax, dword [ebp + 0x10]
mov word [eax + edx*2], di
mov eax, dword [ebp + 0x14]
inc edx
cmp eax, edx
jne 0x10159083
mov ecx, dword [esi + 4]
lea eax, [ecx + eax*4]
push 0x40
push eax
push dword [esi + 0x38]
call fcn.101613e0
add esp, 0xc
mov ecx, dword [esi + 0x98]
xor ecx, ebp
call fcn.1015e65c
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret