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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x13ab4
call fcn.1000ae30
mov eax, dword [ebp + 0x10]
push ebx
push esi
xor esi, esi
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp + 0x24]
xor eax, eax
push edi
mov si, word [ecx + 0x28]
mov ax, word [ecx + 0x2a]
lea ecx, [esp + 0xc98]
mov dword [esp + 0x58], eax
xor eax, eax
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x23ac]
cmp esi, eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x3c], eax
mov byte [esp + 0xf], 2
mov dword [esp + 0x44], ecx
jbe 0x100018d6
lea ebx, [esi*4]
lea edi, [esp + 0x898]
mov ecx, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
lea edi, [esp + 0x98]
shr ecx, 2
rep stosd dword es:[edi], eax
xor edi, edi
test edx, edx
mov dword [esp + 0x20], edi
jbe 0x10001dd4
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], 0
test eax, eax
jbe 0x10001d7d
lea eax, [esi + esi]
cmp eax, edi
ja 0x10001a79
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
lea eax, [esi + esi]
sub ebx, eax
lea eax, [edx + esi]
cmp ecx, eax
mov dword [esp + 0x30], eax
jbe 0x10001927
mov ecx, esi
jmp 0x10001929
sub ecx, edx
mov eax, dword [esp + 0x28]
lea edi, [ebx + esi]
cmp eax, edi
jbe 0x10001938
mov eax, esi
jmp 0x1000193a
sub eax, ebx
lea edi, [esp + 0x3ac0]
mov dword [esp + 0x10], 0
push edi
push eax
push ecx
mov ecx, dword [ebp + 8]
push ebx
push edx
call fcn.10001410
mov eax, dword [esp + 0x20]
sub eax, esi
cmp ebx, eax
mov dword [esp + 0x48], eax
jae 0x10001a79
cmp ebx, dword [esp + 0x28]
jae 0x10001a79
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
cmp esi, eax
jae 0x10001a6c
mov edi, dword [esp + 0x14]
cmp esi, dword [esp + 0x2c]
jae 0x10001a6c
mov eax, ebx
xor edx, edx
div edi
test edx, edx
je 0x100019e2
mov edx, dword [ebp + 0x24]
cmp word [edx + 0x94], 0
je 0x100019e2
mov ecx, dword [esp + 0x10]
xor eax, eax
xor edx, edx
mov al, byte [esp + ecx + 0x3ac0]
mov edi, eax
mov eax, esi
div dword [esp + 0x14]
mov ecx, dword [esp + edx*4 + 0x98]
mov dword [esp + 0x4c], edi
add ecx, edi
shr ecx, 1
mov dword [esp + 0x1c], ecx
lea eax, [esp + edx*4 + 0x98]
mov edx, edi
mov edi, dword [esp + 0x14]
mov dword [eax], edx
jmp 0x10001a00
mov eax, dword [esp + 0x10]
xor ecx, ecx
xor edx, edx
mov cl, byte [esp + eax + 0x3ac0]
mov eax, esi
div edi
mov dword [esp + 0x1c], ecx
mov dword [esp + edx*4 + 0x98], ecx
mov eax, dword [esp + 0x18]
xor edx, edx
div edi
mov edx, dword [esp + 0x24]
cmp ecx, dword [edx + eax*4]
jb 0x10001a32
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0xff
push eax
push ebx
push esi
push ecx
push edx
call fcn.100031d0
add esp, 0x14
jmp 0x10001a56
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
push ebx
push esi
push ecx
push edx
call fcn.100031d0
add esp, 0x14
mov byte [esp + 0xf], 0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x30]
inc edx
inc esi
cmp esi, eax
mov dword [esp + 0x10], edx
jb 0x10001986
mov eax, dword [esp + 0x48]
inc ebx
cmp ebx, eax
jb 0x10001968
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x58]
cmp edx, eax
jae 0x10001a8f
mov dword [esp + 0x50], 0
jmp 0x10001a97
mov ecx, edx
sub ecx, eax
mov dword [esp + 0x50], ecx
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
mov ebx, edi
lea esi, [edx + ecx]
sub ebx, eax
cmp esi, ebx
mov dword [esp + 0x30], esi
jb 0x10001ab4
mov dword [esp + 0x54], edi
jmp 0x10001abc
add edx, eax
add edx, ecx
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x20]
cmp edx, eax
jae 0x10001ac8
xor ebx, ebx
jmp 0x10001acc
mov ebx, edx
sub ebx, eax
mov edi, dword [esp + 0x28]
lea esi, [edx + ecx]
sub edi, eax
cmp esi, edi
jb 0x10001adf
mov edi, dword [esp + 0x28]
jmp 0x10001ae4
lea edi, [edx + eax]
add edi, ecx
mov ecx, dword [esp + 0x50]
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x54]
mov esi, edi
lea edx, [esp + 0x3ac0]
sub esi, ebx
sub eax, ecx
push edx
push esi
push eax
push ebx
push ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], eax
call fcn.10001410
cmp ebx, edi
jae 0x10001ded
fld qword [esp + 0x70]
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0x48]
cmp dword [esp + 0x50], ecx
jae 0x10001b5b
mov edi, esi
xor edx, edx
mov dl, byte [esp + eax + 0x3ac0]
inc eax
mov dword [esp + 0x40], edx
dec edi
fild dword [esp + 0x40]
faddp st(1)
jne 0x10001b44
mov edx, dword [esp + 0x34]
dec edx
mov dword [esp + 0x34], edx
jne 0x10001b3c
test eax, eax
mov dword [esp + 0x38], eax
je 0x10001deb
fidiv dword [esp + 0x38]
fcom qword [ebp + 0x1c]
fnstsw ax
test ah, 1
je 0x10001bb2
mov ecx, dword [ebp + 0x14]
xor eax, eax
mov edx, dword [ebp + 0x24]
mov ax, word [ecx]
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
fxch st(1)
fdiv qword [ebp + 0x1c]
fsubr qword [0x10014110]
fmul qword [edx + 0x48]
fmul st(1)
fsubr st(1)
call fcn.1000aeb0
fstp st(0)
mov dword [esp + 0x40], eax
jmp 0x10001bbf
mov eax, dword [ebp + 0x14]
fstp st(0)
mov cx, word [eax]
mov word [esp + 0x40], cx
fld qword [0x10014108]
xor esi, esi
mov ecx, 0x100
fst qword [esp + 0x80]
fld qword [0x10014108]
xor eax, eax
lea edi, [esp + 0x498]
fst qword [esp + 0x78]
mov dword [esp + 0x34], ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x38], esi
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
cmp edx, eax
jae 0x10001cc6
mov eax, dword [esp + 0x34]
xor edx, edx
div ebx
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x40]
and edi, 0xffff
lea ecx, [esp + eax*4 + 0x898]
mov dword [esp + 0x5c], edx
mov edx, eax
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x10001c59
mov eax, dword [ebp + 0x24]
cmp word [eax + 0x94], 0
je 0x10001c59
mov esi, dword [esp + 0x10]
xor eax, eax
mov al, byte [esp + esi + 0x3ac0]
mov esi, eax
mov eax, dword [ecx]
add eax, esi
mov dword [ecx], esi
shr eax, 1
mov dword [esp + 0x1c], eax
jmp 0x10001c6c
mov esi, dword [esp + 0x10]
xor eax, eax
mov al, byte [esp + esi + 0x3ac0]
mov dword [esp + 0x1c], eax
mov dword [ecx], eax
cmp eax, edi
jb 0x10001caf
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + eax*4 + 0x498]
inc ebx
inc esi
mov dword [esp + 0x38], ebx
mov dword [esp + eax*4 + 0x498], esi
mov ebx, eax
xor esi, esi
imul ebx, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], esi
fild qword [esp + 0x60]
mov dword [esp + 0x68], ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x6c], esi
faddp st(1)
fild qword [esp + 0x68]
faddp st(2)
mov eax, dword [esp + 0x10]
sub ecx, 4
inc eax
dec edx
mov dword [esp + 0x10], eax
jne 0x10001c27
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x4c]
inc eax
cmp eax, ecx
mov dword [esp + 0x34], eax
jb 0x10001bf4
fstp qword [esp + 0x78]
test esi, esi
fstp qword [esp + 0x80]
je 0x10001d48
lea eax, [esp + 0x78]
push eax
push esi
call fcn.10002150
mov ecx, dword [ebp + 0x24]
add esp, 8
fcomp qword [ecx + 0x40]
fnstsw ax
test ah, 1
jne 0x10001d48
mov edx, dword [ebp + 0x18]
lea eax, [esp + 0x78]
push edx
lea edx, [esp + 0x49c]
push eax
push edx
push ecx
push esi
call fcn.10001ff0
mov esi, dword [esp + 0x54]
mov cx, ax
mov eax, dword [esp + 0x2c]
and ecx, 0xffff
and esi, 0xffff
add esp, 0x14
cmp ecx, esi
ja 0x10001d56
xor edx, edx
mov ecx, dword [esp + 0x24]
div ebx
mov dword [ecx + eax*4], esi
jmp 0x10001d61
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x18]
and ecx, 0xffff
xor edx, edx
div ebx
mov edx, dword [esp + 0x24]
mov dword [edx + eax*4], ecx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
cmp eax, ecx
mov dword [esp + 0x18], eax
jb 0x100018f8
mov edx, dword [ebp + 0x28]
mov eax, dword [esp + 0x24]
and edx, 0xffff
mov ecx, dword [esp + 0x44]
imul edx, dword [esp + 0x3c]
cmp edi, edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x44], eax
jbe 0x10001dc0
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x10001dbc
lea eax, [edi + edi*4]
xor edx, edx
lea eax, [eax + eax*4]
shl eax, 2
div dword [esp + 0x28]
push eax
call ecx
cmp al, 1
je 0x10001df6
inc dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
add edi, esi
cmp edi, eax
mov dword [esp + 0x20], edi
jb 0x100018e4
mov edx, eax
cmp edi, esi
jne 0x10001dff
xor ebx, ebx
lea eax, [esp + 0xc98]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
jmp 0x10001e0c
fstp st(0)
mov al, 3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
neg ecx
lea eax, [edi + ecx*2]
mov dword [esp + 0x20], eax
mov ebx, eax
cmp ebx, edx
jae 0x10001fd2
mov eax, dword [esp + 0x2c]
xor edx, edx
test eax, eax
mov dword [esp + 0x18], edx
jbe 0x10001fb0
lea ecx, [ebx + esi]
mov dword [esp + 0x3c], ecx
jmp 0x10001e37
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
lea eax, [edx + esi]
cmp ecx, eax
mov dword [esp + 0x30], eax
jbe 0x10001e4a
mov ecx, esi
jmp 0x10001e4c
sub ecx, edx
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x3c]
cmp eax, edi
jbe 0x10001e5c
mov eax, esi
jmp 0x10001e5e
sub eax, ebx
lea edi, [esp + 0x3ac0]
mov dword [esp + 0x10], 0
push edi
push eax
push ecx
mov ecx, dword [ebp + 8]
push ebx
push edx
call fcn.10001410
cmp ebx, dword [esp + 0x3c]
jae 0x10001f98
mov eax, dword [esp + 0x30]
cmp ebx, dword [esp + 0x28]
jae 0x10001f98
mov esi, dword [esp + 0x18]
cmp esi, eax
jae 0x10001f87
mov edi, dword [esp + 0x14]
cmp esi, dword [esp + 0x2c]
jae 0x10001f87
mov eax, ebx
xor edx, edx
div edi
test edx, edx
je 0x10001efd
mov edx, dword [ebp + 0x24]
cmp word [edx + 0x94], 0
je 0x10001efd
mov ecx, dword [esp + 0x10]
xor eax, eax
xor edx, edx
mov al, byte [esp + ecx + 0x3ac0]
mov edi, eax
mov eax, esi
div dword [esp + 0x14]
mov ecx, dword [esp + edx*4 + 0x98]
mov dword [esp + edx*4 + 0x98], edi
add ecx, edi
mov edi, dword [esp + 0x14]
shr ecx, 1
mov dword [esp + 0x1c], ecx
lea eax, [esp + edx*4 + 0x98]
jmp 0x10001f1b
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov eax, esi
mov cl, byte [esp + edx + 0x3ac0]
xor edx, edx
div edi
mov dword [esp + 0x1c], ecx
mov dword [esp + edx*4 + 0x98], ecx
mov eax, dword [esp + 0x18]
xor edx, edx
div edi
mov edx, dword [esp + 0x24]
cmp ecx, dword [edx + eax*4]
jb 0x10001f4d
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0xff
push eax
push ebx
push esi
push ecx
push edx
call fcn.100031d0
add esp, 0x14
jmp 0x10001f71
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
push ebx
push esi
push ecx
push edx
call fcn.100031d0
add esp, 0x14
mov byte [esp + 0xf], 0
mov eax, dword [esp + 0x10]
inc eax
inc esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
cmp esi, eax
jb 0x10001ea2
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x14]
inc ebx
cmp ebx, ecx
jb 0x10001e88
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
mov dword [esp + 0x18], eax
jb 0x10001e2f
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x28]
add ebx, esi
mov dword [esp + 0x24], ecx
cmp ebx, eax
mov dword [esp + 0x20], ebx
jb 0x10001e14
mov eax, dword [ebp + 0x2c]
test eax, eax
je 0x10001fe0
inc word [0x100180b6]
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret