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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xec
mov edx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0x2c]
mov eax, dword [edx + 0x20]
push edi
mov dword [esp + 0x34], eax
mov ecx, 0xa
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov dword [esi + 0x18], 0xa2879f2e
mov dword [esi + 0x1c], 0x547d42ae
mov cl, byte [edx + 0x1c]
mov eax, dword [edx + 0x3c]
not cl
and ecx, 0xff
mov dword [esp + 0x70], 0xffffffff
and ecx, 8
mov esi, 1
shl ecx, 4
or ecx, 3
test eax, eax
mov dword [esp + 0x7c], ecx
je 0x1013db18
mov ebx, eax
mov dword [esp + 0x4c], 0xffffcfff
mov dword [esp + 0x10], ebx
mov dword [esp + 0x48], ecx
jmp 0x1013db9b
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0xc8]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xb0]
lea ecx, [esp + 0x70]
mov dword [esp + 0xd0], eax
mov eax, dword [edx + 0xc]
mov dword [esp + 0xec], esi
mov dword [esp + 0xcc], ecx
mov byte [esp + 0xf4], 5
mov dword [esp + 0xd4], eax
mov ecx, dword [eax + 0x18]
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb0], ecx
mov cl, byte [edx + 0x1d]
test cl, cl
jne 0x1013db7c
mov edx, dword [eax + 0x10]
mov dword [esp + 0xdc], edx
lea ebx, [esp + 0xc8]
mov dword [esp + 0x4c], 0xfff0ffff
mov dword [esp + 0x48], 3
mov dword [esp + 0x10], 0
test ebx, ebx
je 0x1013e26e
mov ecx, dword [ebp + 0x24]
xor eax, eax
test ecx, ecx
setne al
mov dword [esp + 0x6c], eax
mov eax, dword [ebp + 0x28]
xor ecx, ecx
test eax, eax
setne cl
mov dword [esp + 0x78], ecx
mov eax, dword [esp + 0x6c]
mov edx, dword [ebx + 8]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x68], eax
mov eax, dword [ebx + 0x24]
xor esi, esi
mov edi, 1
cmp eax, esi
mov dword [esp + 0x18], edx
mov dword [esp + 0xc], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], 0x3ff00000
mov dword [esp + 0x14], esi
mov dword [esp + 0x64], ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x44], esi
jle 0x1013dce4
mov edx, dword [ebx + 4]
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, dword [ebp + 0x18]
mov eax, dword [edx + esi*4]
mov edx, dword [esp + 0x4c]
push edx
mov edx, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push eax
mov eax, dword [esp + 0x48]
push eax
push ecx
call fcn.1013cd90
add esp, 0x1c
test eax, eax
je 0x1013dcdc
mov ecx, dword [esp + 0xc]
or ecx, 0x11000
mov dword [esp + 0xc], ecx
mov cx, word [eax + 0x10]
test cl, 1
je 0x1013dca9
mov edx, dword [esp + 0xc]
mov ecx, dword [eax]
or edx, 0x40000
mov dword [esp + 0xc], edx
mov dx, word [ecx + 2]
and edx, 0x800
cmp edx, 0x800
jne 0x1013dc95
lea ecx, [edi + edi*4]
mov dword [esp + 0x38], 1
lea edi, [ecx + ecx*4]
jmp 0x1013dcb6
mov ecx, dword [ecx + 0x10]
test ecx, ecx
je 0x1013dcb6
mov ecx, dword [ecx]
test ecx, ecx
je 0x1013dcb6
imul ecx, edi
mov edi, ecx
jmp 0x1013dcb6
test cl, 0x80
je 0x1013dcb6
or dword [esp + 0xc], 0x80000
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
mov eax, dword [esp + 0x1c]
or eax, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
or eax, edx
inc esi
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x24]
cmp esi, eax
jl 0x1013dc1a
mov dword [esp + 0x44], esi
mov dword [esp + 0x24], edi
mov eax, dword [ebx + 0x24]
cmp esi, eax
jne 0x1013dd0f
mov cl, byte [ebx + 0x2c]
test cl, cl
je 0x1013dd0f
mov eax, dword [esp + 0xc]
test eax, 0xc0000
jne 0x1013de27
or eax, 0x4000000
mov dword [esp + 0xc], eax
jmp 0x1013de27
mov cl, byte [ebx + 0x2e]
test cl, cl
jne 0x1013de27
cmp esi, eax
jne 0x1013dd23
or edi, 0xffffffff
jmp 0x1013dd29
mov eax, dword [ebx + 4]
mov edi, dword [eax + esi*4]
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [esp + 0x38]
push 0x3c
push edx
mov edx, dword [ebp + 0xc]
push eax
push edi
push ecx
push edx
call fcn.1013cd90
add esp, 0x1c
test eax, eax
je 0x1013de27
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [esp + 0x38]
push 0x18
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push edi
push eax
push ecx
call fcn.1013cd90
mov edx, dword [esp + 0x2c]
mov ecx, dword [ebp + 0x14]
mov esi, eax
mov eax, dword [ebp + 0x18]
push edx
mov edx, dword [esp + 0x54]
push 0x24
push eax
mov eax, dword [ebp + 0xc]
push ecx
push edi
push edx
push eax
call fcn.1013cd90
mov edx, dword [esp + 0x7c]
lea ecx, [esp + 0xb8]
mov edi, eax
mov eax, dword [ebp + 8]
push ecx
push esi
push edi
push edx
push ebx
push eax
call fcn.1013e7d0
add esp, 0x50
test esi, esi
je 0x1013dde1
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
mov esi, dword [esp + 0x1c]
or eax, 0x100000
or esi, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x20]
or eax, edx
mov dword [esp + 0x14], 1
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], eax
test edi, edi
je 0x1013de16
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0xc]
mov ecx, dword [edi + 0x1c]
inc eax
or esi, 0x200000
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x18]
or edx, eax
mov eax, dword [esp + 0x20]
or eax, ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x44]
or eax, 0x22000
mov dword [esp + 0xc], eax
mov edi, dword [esp + 0xc]
mov eax, dword [ebp + 0x24]
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x74]
push edx
mov edx, dword [ebp + 0xc]
push edi
push esi
push eax
mov eax, dword [edx + 4]
push ecx
mov ecx, dword [ebp + 8]
push ebx
push eax
push ecx
call fcn.1013e450
add esp, 0x20
test eax, eax
je 0x1013de75
mov edx, dword [esp + 0x74]
mov dword [esp + 0x68], 0
neg edx
sbb edx, edx
and edx, 0x2000000
or edx, 0x1022000
or edi, edx
mov dword [esp + 0xc], edi
mov eax, dword [ebp + 0x28]
mov ecx, dword [esp + 0x34]
mov edx, dword [ebp + 0xc]
push esi
push eax
mov eax, dword [ebp + 8]
push ecx
push ebx
push edx
push eax
call fcn.1013e2e0
add esp, 0x18
test eax, eax
je 0x1013deae
test edi, 0x40000
jne 0x1013deae
or edi, 0x40022000
mov dword [esp + 0x64], 0
mov dword [esp + 0xc], edi
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x1013df42
test edi, edi
je 0x1013df42
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 0x30]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x54], eax
mov eax, dword [ecx + 0x24]
test eax, eax
mov dword [esp + 0x50], edx
jle 0x1013df1a
mov edi, dword [ecx + 4]
mov dword [esp + 0x58], eax
mov ecx, dword [edi]
cmp ecx, 0x3f
jge 0x1013df0c
mov eax, 1
xor edx, edx
call fcn.10146d80
mov ecx, dword [esp + 0x50]
not eax
and ecx, eax
mov eax, dword [esp + 0x54]
not edx
and eax, edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x58]
add edi, 4
dec eax
mov dword [esp + 0x58], eax
jne 0x1013dee1
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
or eax, ecx
jne 0x1013df36
mov edi, dword [esp + 0xc]
or edi, 0x800000
mov dword [esp + 0xc], edi
jmp 0x1013df42
mov edi, dword [esp + 0xc]
mov dword [esp + 0x28], 1
mov edx, dword [esp + 0x18]
mov dword [esp + 0x8c], 0
mov edx, dword [edx + esi*4]
mov eax, edx
imul eax, dword [esp + 0x24]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x38]
fild qword [esp + 0x88]
test eax, eax
je 0x1013dfd8
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xa4], 0
fld st(0)
mov ecx, dword [ecx]
fadd st(0), st(0)
mov dword [esp + 0xa0], ecx
fild qword [esp + 0xa0]
fcompp
fnstsw ax
test ah, 1
je 0x1013dfd8
shr ecx, 1
xor eax, eax
mov dword [esp + 0xb8], ecx
fstp st(0)
mov dword [esp + 0xbc], eax
mov dword [esp + 0x90], edx
fild qword [esp + 0xb8]
mov dword [esp + 0x94], eax
fild qword [esp + 0x90]
fdivr st(1)
call fcn.10144a58
mov dword [esp + 0x24], eax
fdiv qword [esp + 0x80]
fcom qword [0x101652b8]
fst qword [esp + 0x38]
fnstsw ax
test ah, 1
je 0x1013dffc
fstp st(0)
fld qword [0x101652b8]
fst qword [esp + 0x38]
test edi, 0x100f3000
jne 0x1013e028
mov edx, dword [esp + 0x18]
mov dword [esp + 0x9c], 0
mov eax, dword [edx]
shl eax, 2
mov dword [esp + 0x98], eax
fild qword [esp + 0x98]
jmp 0x1013e085
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xac], 0
fstp st(0)
mov edx, dword [ecx]
sub esp, 8
mov dword [esp + 0xb0], edx
fild qword [esp + 0xb0]
fstp qword [esp]
call fcn.1013d5d0
mov eax, dword [esp + 0x18]
add esp, 8
fstp qword [esp + 0x58]
test eax, eax
je 0x1013e077
mov eax, dword [esp + 0x28]
fld qword [esp + 0x38]
fild dword [esp + 0x24]
test eax, eax
je 0x1013e07f
fadd st(1)
jmp 0x1013e07f
fld qword [esp + 0x38]
fild dword [esp + 0x24]
fmul qword [esp + 0x58]
fadd st(1)
mov eax, dword [esp + 0x68]
mov esi, dword [esp + 0x3c]
fstp qword [esp + 0x28]
mov edi, dword [esp + 0x38]
test eax, eax
je 0x1013e0bb
push esi
push edi
fstp st(0)
call fcn.1013d5d0
fmul qword [esp + 0x40]
add esp, 8
fmul qword [0x101653a8]
fadd qword [esp + 0x28]
fstp qword [esp + 0x28]
fld qword [esp + 0x38]
mov eax, dword [esp + 0x64]
test eax, eax
je 0x1013e0e5
push esi
push edi
fstp st(0)
call fcn.1013d5d0
fmul qword [esp + 0x40]
add esp, 8
fmul qword [0x101653a8]
fadd qword [esp + 0x28]
fstp qword [esp + 0x28]
fld qword [esp + 0x38]
fcom qword [0x101653a0]
fnstsw ax
test ah, 0x41
jne 0x1013e1d7
mov eax, dword [ebp + 0x2c]
fld qword [esp + 0x28]
fcomp qword [eax + 0x18]
fnstsw ax
test ah, 0x41
je 0x1013e1d7
mov ecx, dword [esp + 0x44]
mov esi, dword [ebp + 0xc]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + 4]
push eax
push ecx
fstp st(0)
mov dword [esp + 0x1c], edx
call fcn.1013bb40
fld qword [esp + 0x40]
mov edi, eax
mov eax, dword [esi + 0x20]
mov dword [esp + 0xcc], edx
mov edx, dword [esi + 0x18]
add esp, 8
lea esi, [eax + 0x10]
test edx, edx
je 0x1013e1c2
test byte [esi + 2], 2
jne 0x1013e1b1
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp + 0x1c]
and eax, ecx
mov ecx, dword [esi + 0x14]
and ecx, dword [ebp + 0x20]
cmp eax, edi
jne 0x1013e1b1
cmp ecx, dword [esp + 0xc4]
jne 0x1013e1b1
mov ax, word [esi]
test al, 0x83
je 0x1013e18a
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1013e182
dec eax
mov dword [esp + 0x18], eax
jmp 0x1013e1b1
fmul qword [0x10165358]
jmp 0x1013e1b1
test al, 0x3c
je 0x1013e1a5
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1013e19d
dec eax
mov dword [esp + 0x14], eax
jmp 0x1013e1b1
fmul qword [0x10165398]
jmp 0x1013e1b1
cmp ax, 0x800
je 0x1013e1b1
fmul qword [0x101652a0]
fcom qword [0x101653a0]
dec edx
add esi, 0x28
fnstsw ax
test ah, 0x41
je 0x1013e147
fcom qword [0x101653a0]
fnstsw ax
test ah, 1
je 0x1013e1d7
fstp st(0)
fld qword [0x101653a0]
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
test esi, esi
je 0x1013e1e7
test edx, edx
je 0x1013e243
mov ecx, dword [ebp + 0x2c]
fld qword [esp + 0x28]
fcomp qword [ecx + 0x18]
fnstsw ax
test ah, 1
jne 0x1013e210
fld qword [esp + 0x28]
fcomp qword [ecx + 0x18]
fnstsw ax
test ah, 0x41
je 0x1013e243
fcom qword [ecx + 8]
fnstsw ax
test ah, 1
je 0x1013e243
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov dword [ecx + 0x18], eax
mov eax, dword [esp + 0x1c]
mov dword [ecx + 0x20], eax
mov eax, dword [esp + 0x20]
mov dword [ecx + 0x24], eax
mov eax, dword [esp + 0x4c]
fstp qword [ecx + 8]
and edx, eax
mov dword [ecx + 0x1c], edi
mov dword [ecx], edx
mov edx, dword [esp + 0x44]
mov dword [ecx + 4], edx
mov dword [ecx + 0x10], esi
jmp 0x1013e245
fstp st(0)
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
jne 0x1013e26e
mov ebx, dword [ebx + 0x14]
mov ecx, dword [esp + 0x7c]
test ebx, ebx
mov dword [esp + 0x4c], 0xffffcfff
mov dword [esp + 0x48], ecx
mov dword [esp + 0x10], ebx
jne 0x1013dbbf
mov eax, dword [ebp + 0x24]
test eax, eax
jne 0x1013e28e
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0x2c]
mov ecx, dword [edx]
test dword [ecx + 0x18], 0x1000000
je 0x1013e291
or dword [esi], 0x2000000
jmp 0x1013e291
mov esi, dword [ebp + 0x2c]
mov edx, dword [ebp + 0x20]
mov edi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push esi
push eax
mov eax, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push edi
push ebx
push ecx
push edx
push eax
call fcn.1013d610
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
push edi
push ebx
push ecx
push edx
push eax
call fcn.1013e6b0
mov ecx, dword [esp + 0x84]
mov eax, dword [esi]
add esp, 0x3c
or eax, ecx
mov dword [esi], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret